Remove unused action

wilder
Laurent Montel 6 years ago
parent 20b8c182b3
commit fdcb158c4e
  1. 5
      src/kmail_part.rc
  2. 4
      src/kmmainwidget.cpp
  3. 1
      src/kmmainwidget.h
  4. 4
      src/kmmainwin.rc

@ -2,7 +2,7 @@
the same menu entries at the same place in KMail and Kontact -->
<!DOCTYPE gui>
<gui version="541" name="kmmainwin" translationDomain="kmail">
<gui version="543" name="kmmainwin" translationDomain="kmail">
<MenuBar>
<Menu noMerge="1" name="file" >
<text>&amp;File</text>
@ -29,8 +29,6 @@
<Separator/>
<Action name="akonadi_work_offline" />
<Separator/>
<Action name="low_bandwidth"/>
<Separator/>
<Action name="check_mail" />
<Action name="check_mail_in" />
<Action name="send_queued" />
@ -287,6 +285,7 @@
<Action name="folder_shortcut_command"/>
<ActionList name="akonadi_collection_collectionproperties_actionlist"/>
<ActionList name="resource_settings" />
<ActionList name="resource_restart" />
<Separator/>
<ActionList name="collectionview_actionlist" />
</Menu>

@ -3570,10 +3570,6 @@ void KMMainWidget::setupActions()
actionCollection()->addAction(QStringLiteral("archive_mails"), mArchiveAction);
connect(mArchiveAction, &QAction::triggered, this, &KMMainWidget::slotArchiveMails);
mUseLessBandwidth = new KToggleAction(i18n("Use Less Bandwidth"), this);
actionCollection()->addAction(QStringLiteral("low_bandwidth"), mUseLessBandwidth);
connect(mUseLessBandwidth, &KToggleAction::triggered, this, &KMMainWidget::slotBandwidth);
mMarkAllMessageAsReadAndInAllSubFolder = new QAction(i18n("Mark All Messages As Read in This Folder and All its Subfolder"), this);
mMarkAllMessageAsReadAndInAllSubFolder->setIcon(QIcon::fromTheme(QStringLiteral("mail-mark-read")));
actionCollection()->addAction(QStringLiteral("markallmessagereadcurentfolderandsubfolder"), mMarkAllMessageAsReadAndInAllSubFolder);

@ -642,7 +642,6 @@ private:
KMLaunchExternalComponent *mLaunchExternalComponent = nullptr;
ManageShowCollectionProperties *mManageShowCollectionProperties = nullptr;
QAction *mShowIntroductionAction = nullptr;
KToggleAction *mUseLessBandwidth = nullptr;
QAction *mMarkAllMessageAsReadAndInAllSubFolder = nullptr;
KActionMenuAccount *mAccountActionMenu = nullptr;
QAction *mRemoveDuplicateRecursiveAction = nullptr;

@ -2,7 +2,7 @@
the same menu entries at the same place in KMail and Kontact -->
<!DOCTYPE gui>
<gui version="542" name="kmmainwin" translationDomain="kmail">
<gui version="543" name="kmmainwin" translationDomain="kmail">
<MenuBar>
<Menu noMerge="1" name="file" >
<text>&amp;File</text>
@ -29,8 +29,6 @@
<Separator/>
<Action name="akonadi_work_offline" />
<Separator/>
<Action name="low_bandwidth"/>
<Separator/>
<Action name="check_mail" />
<Action name="check_mail_in" />
<Action name="send_queued" />

Loading…
Cancel
Save