mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
[needs-docs] Add welcome screen action to project menu
This commit is contained in:
parent
4ef667db3d
commit
0e80b72d0c
@ -1863,6 +1863,7 @@ void QgisApp::createActions()
|
|||||||
connect( mActionNewBlankProject, &QAction::triggered, this, &QgisApp::fileNewBlank );
|
connect( mActionNewBlankProject, &QAction::triggered, this, &QgisApp::fileNewBlank );
|
||||||
connect( mActionOpenProject, &QAction::triggered, this, &QgisApp::fileOpen );
|
connect( mActionOpenProject, &QAction::triggered, this, &QgisApp::fileOpen );
|
||||||
connect( mActionSaveProject, &QAction::triggered, this, &QgisApp::fileSave );
|
connect( mActionSaveProject, &QAction::triggered, this, &QgisApp::fileSave );
|
||||||
|
connect( mActionWelcomePage, &QAction::triggered, this, [ = ] { mCentralContainer->setCurrentIndex( 1 ); } );
|
||||||
connect( mActionSaveProjectAs, &QAction::triggered, this, &QgisApp::fileSaveAs );
|
connect( mActionSaveProjectAs, &QAction::triggered, this, &QgisApp::fileSaveAs );
|
||||||
connect( mActionSaveMapAsImage, &QAction::triggered, this, [ = ] { saveMapAsImage(); } );
|
connect( mActionSaveMapAsImage, &QAction::triggered, this, [ = ] { saveMapAsImage(); } );
|
||||||
connect( mActionSaveMapAsPdf, &QAction::triggered, this, [ = ] { saveMapAsPdf(); } );
|
connect( mActionSaveMapAsPdf, &QAction::triggered, this, [ = ] { saveMapAsPdf(); } );
|
||||||
|
@ -46,6 +46,7 @@
|
|||||||
<addaction name="mActionOpenProject"/>
|
<addaction name="mActionOpenProject"/>
|
||||||
<addaction name="mProjectFromTemplateMenu"/>
|
<addaction name="mProjectFromTemplateMenu"/>
|
||||||
<addaction name="mRecentProjectsMenu"/>
|
<addaction name="mRecentProjectsMenu"/>
|
||||||
|
<addaction name="mActionWelcomePage"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="mActionSaveProject"/>
|
<addaction name="mActionSaveProject"/>
|
||||||
<addaction name="mActionSaveProjectAs"/>
|
<addaction name="mActionSaveProjectAs"/>
|
||||||
@ -2959,6 +2960,11 @@ Acts on currently active editable layer</string>
|
|||||||
<string>New Report</string>
|
<string>New Report</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="mActionWelcomePage">
|
||||||
|
<property name="text">
|
||||||
|
<string>Welcome Page</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<resources>
|
<resources>
|
||||||
<include location="../../images/images.qrc"/>
|
<include location="../../images/images.qrc"/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user