Skip to content

Commit

Permalink
[ui] adjust size and spacing of welcome screen title (#4139)
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Feb 12, 2017
1 parent 9a7c829 commit 40ebca7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/qgswelcomepage.cpp
Expand Up @@ -43,7 +43,11 @@ QgsWelcomePage::QgsWelcomePage( bool skipVersionCheck, QWidget* parent )
recentProjectsContainer->setLayout( new QVBoxLayout );
recentProjectsContainer->layout()->setContentsMargins( 0, 0, 0, 0 );
recentProjectsContainer->layout()->setMargin( 0 );
QLabel* recentProjectsTitle = new QLabel( QStringLiteral( "<h1>%1</h1>" ).arg( tr( "Recent Projects" ) ) );

int titleSize = QApplication::fontMetrics().height() * 1.4;
QLabel* recentProjectsTitle = new QLabel( QStringLiteral( "<div style='font-size:%1px;font-weight:bold;'>%2</div>" ).arg( titleSize ).arg( tr( "Recent Projects" ) ) );
recentProjectsTitle->setContentsMargins( 0, 3, 0, 0 );

recentProjectsContainer->layout()->addWidget( recentProjectsTitle );

QListView* recentProjectsListView = new QListView();
Expand Down

0 comments on commit 40ebca7

Please sign in to comment.