Skip to content
Permalink
Browse files

Reduce padding around recent project widget

  • Loading branch information
NathanW2 committed Dec 2, 2015
1 parent 1d55e9d commit 71baa456f7a6fc075d0928cd55dff18ffa960b35
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/app/qgswelcomepage.cpp
@@ -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 );

0 comments on commit 71baa45

Please sign in to comment.
You can’t perform that action at this time.