Skip to content

Commit 0e80b72

Browse files
committedMar 5, 2018
[needs-docs] Add welcome screen action to project menu
1 parent 4ef667d commit 0e80b72

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,6 +1863,7 @@ void QgisApp::createActions()
18631863
connect( mActionNewBlankProject, &QAction::triggered, this, &QgisApp::fileNewBlank );
18641864
connect( mActionOpenProject, &QAction::triggered, this, &QgisApp::fileOpen );
18651865
connect( mActionSaveProject, &QAction::triggered, this, &QgisApp::fileSave );
1866+
connect( mActionWelcomePage, &QAction::triggered, this, [ = ] { mCentralContainer->setCurrentIndex( 1 ); } );
18661867
connect( mActionSaveProjectAs, &QAction::triggered, this, &QgisApp::fileSaveAs );
18671868
connect( mActionSaveMapAsImage, &QAction::triggered, this, [ = ] { saveMapAsImage(); } );
18681869
connect( mActionSaveMapAsPdf, &QAction::triggered, this, [ = ] { saveMapAsPdf(); } );

‎src/ui/qgisapp.ui

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
<addaction name="mActionOpenProject"/>
4747
<addaction name="mProjectFromTemplateMenu"/>
4848
<addaction name="mRecentProjectsMenu"/>
49+
<addaction name="mActionWelcomePage"/>
4950
<addaction name="separator"/>
5051
<addaction name="mActionSaveProject"/>
5152
<addaction name="mActionSaveProjectAs"/>
@@ -2959,6 +2960,11 @@ Acts on currently active editable layer</string>
29592960
<string>New Report</string>
29602961
</property>
29612962
</action>
2963+
<action name="mActionWelcomePage">
2964+
<property name="text">
2965+
<string>Welcome Page</string>
2966+
</property>
2967+
</action>
29622968
</widget>
29632969
<resources>
29642970
<include location="../../images/images.qrc"/>

1 commit comments

Comments
 (1)

nyalldawson commented on Mar 5, 2018

@nyalldawson
Collaborator

🎉

Please sign in to comment.