[needs-docs] Add welcome screen action to project menu

This commit is contained in:
Nathan Woodrow 2018-03-05 10:41:35 +10:00
parent 4ef667db3d
commit 0e80b72d0c
2 changed files with 7 additions and 0 deletions

View File

@ -1863,6 +1863,7 @@ void QgisApp::createActions()
connect( mActionNewBlankProject, &QAction::triggered, this, &QgisApp::fileNewBlank );
connect( mActionOpenProject, &QAction::triggered, this, &QgisApp::fileOpen );
connect( mActionSaveProject, &QAction::triggered, this, &QgisApp::fileSave );
connect( mActionWelcomePage, &QAction::triggered, this, [ = ] { mCentralContainer->setCurrentIndex( 1 ); } );
connect( mActionSaveProjectAs, &QAction::triggered, this, &QgisApp::fileSaveAs );
connect( mActionSaveMapAsImage, &QAction::triggered, this, [ = ] { saveMapAsImage(); } );
connect( mActionSaveMapAsPdf, &QAction::triggered, this, [ = ] { saveMapAsPdf(); } );

View File

@ -46,6 +46,7 @@
<addaction name="mActionOpenProject"/>
<addaction name="mProjectFromTemplateMenu"/>
<addaction name="mRecentProjectsMenu"/>
<addaction name="mActionWelcomePage"/>
<addaction name="separator"/>
<addaction name="mActionSaveProject"/>
<addaction name="mActionSaveProjectAs"/>
@ -2959,6 +2960,11 @@ Acts on currently active editable layer</string>
<string>New Report</string>
</property>
</action>
<action name="mActionWelcomePage">
<property name="text">
<string>Welcome Page</string>
</property>
</action>
</widget>
<resources>
<include location="../../images/images.qrc"/>