Skip to content
Browse files
Reduce padding around recent project widget
  • Loading branch information
NathanW2 committed Dec 2, 2015
1 parent 1d55e9d commit 71baa45
Showing 1 changed file with 1 addition and 0 deletions.
@@ -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.

Copy link

m-kuhn Dec 2, 2015


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?

This comment has been minimized.

Copy link

NathanW2 via email Dec 2, 2015

Author Member
QLabel* recentProjectsTitle = new QLabel( QString( "<h1>%1</h1>" ).arg( tr( "Recent Projects" ) ) );
recentProjctsContainer->layout()->addWidget( recentProjectsTitle );

0 comments on commit 71baa45

Please sign in to comment.