Skip to content
Permalink
Browse files

[ui] adjust size and spacing of welcome screen title (#4139)

  • Loading branch information
nirvn committed Feb 12, 2017
1 parent 9a7c829 commit 40ebca7892da1370f5f3549e6047d2297f596d6c
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/app/qgswelcomepage.cpp
@@ -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();

0 comments on commit 40ebca7

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