Skip to content

Commit 40ebca7

Browse files
authoredFeb 12, 2017
[ui] adjust size and spacing of welcome screen title (#4139)
1 parent 9a7c829 commit 40ebca7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎src/app/qgswelcomepage.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ QgsWelcomePage::QgsWelcomePage( bool skipVersionCheck, QWidget* parent )
4343
recentProjectsContainer->setLayout( new QVBoxLayout );
4444
recentProjectsContainer->layout()->setContentsMargins( 0, 0, 0, 0 );
4545
recentProjectsContainer->layout()->setMargin( 0 );
46-
QLabel* recentProjectsTitle = new QLabel( QStringLiteral( "<h1>%1</h1>" ).arg( tr( "Recent Projects" ) ) );
46+
47+
int titleSize = QApplication::fontMetrics().height() * 1.4;
48+
QLabel* recentProjectsTitle = new QLabel( QStringLiteral( "<div style='font-size:%1px;font-weight:bold;'>%2</div>" ).arg( titleSize ).arg( tr( "Recent Projects" ) ) );
49+
recentProjectsTitle->setContentsMargins( 0, 3, 0, 0 );
50+
4751
recentProjectsContainer->layout()->addWidget( recentProjectsTitle );
4852

4953
QListView* recentProjectsListView = new QListView();

0 commit comments

Comments
 (0)
Please sign in to comment.