Skip to content

Commit

Permalink
Reduce padding around recent project widget
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Dec 2, 2015
1 parent 1d55e9d commit 71baa45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/qgswelcomepage.cpp
Expand Up @@ -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

m-kuhn Dec 2, 2015

Member

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

NathanW2 via email Dec 2, 2015

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

Expand Down

0 comments on commit 71baa45

Please sign in to comment.