-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[welcome page] increase text width to avoid reflow on hidpi screens
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1fdfe30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nirvn with the increasing of text width in recent projects widget it always shows the horizontal scroll bar, Any chance to display it as needed?
1fdfe30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@slarosa I did notice the horizontal scroll bar after the PR was committed. It's a bit odd on my computer, whereas the scroll bar will only appear if I resize the QGIS window to be smaller than its original size on launch. Can you confirm it's the case for you too?
That said, I've tried to look into it and I'm at lost as to what's happening here. If you look at the sizeHint function (which begins at line 89), you'll see the code does not use the QTextDocument width to set the item's width. Some dark Qt voodoo at play here.
1fdfe30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nirvn I see anyway the scrollbar not need to resize the window (15'' screen).
hmm, I guess
option.rect.width()
is related todoc.setTextWidth( 2800 )
, but I am not sure.Anyway, I expect the horizontal scrollbar must be shown as needed and if I resize the window I also would expect the text must be wrapped and not cut.
1fdfe30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@slarosa PR #2368 fixes the issue.