Skip to content

Commit

Permalink
[needs-docs] Add welcome screen action to project menu
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Mar 5, 2018
1 parent 4ef667d commit 0e80b72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -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(); } );
Expand Down
6 changes: 6 additions & 0 deletions src/ui/qgisapp.ui
Expand Up @@ -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"/>
Expand Down Expand Up @@ -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"/>
Expand Down

1 comment on commit 0e80b72

@nyalldawson
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

Please sign in to comment.