@@ -133,8 +133,6 @@ QgsComposer::QgsComposer( QgsComposition *composition )
133
133
connect ( mActionAddAttributeTable , &QAction::triggered, this , &QgsComposer::mActionAddAttributeTable_triggered );
134
134
connect ( mActionAddHtml , &QAction::triggered, this , &QgsComposer::mActionAddHtml_triggered );
135
135
connect ( mActionSaveProject , &QAction::triggered, this , &QgsComposer::mActionSaveProject_triggered );
136
- connect ( mActionNewComposer , &QAction::triggered, this , &QgsComposer::mActionNewComposer_triggered );
137
- connect ( mActionDuplicateComposer , &QAction::triggered, this , &QgsComposer::mActionDuplicateComposer_triggered );
138
136
connect ( mActionComposerManager , &QAction::triggered, this , &QgsComposer::mActionComposerManager_triggered );
139
137
connect ( mActionSaveAsTemplate , &QAction::triggered, this , &QgsComposer::mActionSaveAsTemplate_triggered );
140
138
connect ( mActionLoadFromTemplate , &QAction::triggered, this , &QgsComposer::mActionLoadFromTemplate_triggered );
@@ -302,8 +300,6 @@ QgsComposer::QgsComposer( QgsComposition *composition )
302
300
QMenu *composerMenu = menuBar ()->addMenu ( tr ( " &Composer" ) );
303
301
composerMenu->addAction ( mActionSaveProject );
304
302
composerMenu->addSeparator ();
305
- composerMenu->addAction ( mActionNewComposer );
306
- composerMenu->addAction ( mActionDuplicateComposer );
307
303
composerMenu->addAction ( mActionComposerManager );
308
304
309
305
mPrintComposersMenu = new QMenu ( tr ( " Print &Composers" ), this );
@@ -760,8 +756,6 @@ void QgsComposer::setupTheme()
760
756
// missing from active theme
761
757
mActionQuit ->setIcon ( QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionFileExit.png" ) ) );
762
758
mActionSaveProject ->setIcon ( QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionFileSave.svg" ) ) );
763
- mActionNewComposer ->setIcon ( QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionNewComposer.svg" ) ) );
764
- mActionDuplicateComposer ->setIcon ( QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionDuplicateComposer.svg" ) ) );
765
759
mActionComposerManager ->setIcon ( QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionComposerManager.svg" ) ) );
766
760
mActionLoadFromTemplate ->setIcon ( QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionFileOpen.svg" ) ) );
767
761
mActionSaveAsTemplate ->setIcon ( QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionFileSaveAs.svg" ) ) );
@@ -3016,42 +3010,6 @@ void QgsComposer::mActionSaveProject_triggered()
3016
3010
mQgis ->actionSaveProject ()->trigger ();
3017
3011
}
3018
3012
3019
- void QgsComposer::mActionNewComposer_triggered ()
3020
- {
3021
- QString title;
3022
- if ( !mQgis ->uniqueComposerTitle ( this , title, true ) )
3023
- {
3024
- return ;
3025
- }
3026
- mQgis ->createNewComposer ( title );
3027
- }
3028
-
3029
- void QgsComposer::mActionDuplicateComposer_triggered ()
3030
- {
3031
- QString newTitle;
3032
- if ( !mQgis ->uniqueComposerTitle ( this , newTitle, false , mComposition ->name () + tr ( " copy" ) ) )
3033
- {
3034
- return ;
3035
- }
3036
-
3037
- // provide feedback, since loading of template into duplicate composer will be hidden
3038
- QDialog *dlg = new QgsBusyIndicatorDialog ( tr ( " Duplicating composer..." ) );
3039
- dlg->setStyleSheet ( mQgis ->styleSheet () );
3040
- dlg->show ();
3041
-
3042
- QgsComposer *newComposer = mQgis ->duplicateComposer ( this , newTitle );
3043
-
3044
- dlg->close ();
3045
- delete dlg;
3046
- dlg = nullptr ;
3047
-
3048
- if ( !newComposer )
3049
- {
3050
- QMessageBox::warning ( this , tr ( " Duplicate Composer" ),
3051
- tr ( " Composer duplication failed." ) );
3052
- }
3053
- }
3054
-
3055
3013
void QgsComposer::mActionComposerManager_triggered ()
3056
3014
{
3057
3015
// NOTE: Avoid crash where composer that spawned modal manager from toolbar ends up
0 commit comments