Skip to content
Permalink
Browse files

Make welcome page layout align with other panels + docks

  • Loading branch information
nyalldawson committed Oct 25, 2016
1 parent 0b35cce commit f195e9400f885e56625b96a6b36efd7af3a767ec
Showing with 9 additions and 7 deletions.
  1. +9 −7 src/app/qgswelcomepage.cpp
@@ -31,18 +31,20 @@ QgsWelcomePage::QgsWelcomePage( bool skipVersionCheck, QWidget* parent )

QVBoxLayout* mainLayout = new QVBoxLayout;
mainLayout->setMargin( 0 );
mainLayout->setContentsMargins( 0, 0, 0, 0 );
setLayout( mainLayout );

QHBoxLayout* layout = new QHBoxLayout();
layout->setMargin( 9 );
layout->setMargin( 0 );

mainLayout->addLayout( layout );

QWidget* recentProjctsContainer = new QWidget;
recentProjctsContainer->setLayout( new QVBoxLayout );
recentProjctsContainer->layout()->setContentsMargins( 3, 3, 3, 0 );
QWidget* recentProjectsContainer = new QWidget;
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" ) ) );
recentProjctsContainer->layout()->addWidget( recentProjectsTitle );
recentProjectsContainer->layout()->addWidget( recentProjectsTitle );

QListView* recentProjectsListView = new QListView();
recentProjectsListView->setResizeMode( QListView::Adjust );
@@ -51,9 +53,9 @@ QgsWelcomePage::QgsWelcomePage( bool skipVersionCheck, QWidget* parent )
recentProjectsListView->setModel( mModel );
recentProjectsListView->setItemDelegate( new QgsWelcomePageItemDelegate( recentProjectsListView ) );

recentProjctsContainer->layout()->addWidget( recentProjectsListView );
recentProjectsContainer->layout()->addWidget( recentProjectsListView );

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

mVersionInformation = new QLabel;
mainLayout->addWidget( mVersionInformation );

0 comments on commit f195e94

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