Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
1 addition
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -38,6 +38,7 @@ QgsWelcomePage::QgsWelcomePage( QWidget* parent ) | ||
|
||
QWidget* recentProjctsContainer = new QWidget; | ||
recentProjctsContainer->setLayout( new QVBoxLayout ); | ||
recentProjctsContainer->layout()->setContentsMargins( 3, 3, 3, 3 ); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
NathanW2
via email
Author
Member
|
||
QLabel* recentProjectsTitle = new QLabel( QString( "<h1>%1</h1>" ).arg( tr( "Recent Projects" ) ) ); | ||
recentProjctsContainer->layout()->addWidget( recentProjectsTitle ); | ||
|
||
I see you often do such changes. What are they triggered by?
It looks ok in this case, but sometimes they make everything look very packed. Or in case of group boxes the title overlaps with the content (probably depends on the system style).
In some cases it's fine on all systems though, e.g. when nesting many widgets and layouts and all of them add their bit of spacing.
So I wonder if it could be detected from the system if abovementioned "trigger" (limited screen real estate? DPI?) applies and only reduce margins there?