mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 18:32:51 +00:00
kgpg: use standard action for quit action
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
701cd1a216
commit
4e8b230f3d
2 changed files with 4 additions and 2 deletions
|
@ -21,6 +21,7 @@
|
|||
#include <kmimetype.h>
|
||||
#include <kpassworddialog.h>
|
||||
#include <kmessagebox.h>
|
||||
#include <kstandardaction.h>
|
||||
#include <khelpmenu.h>
|
||||
#include <kapplication.h>
|
||||
#include <klocale.h>
|
||||
|
@ -42,12 +43,14 @@ KGPG::KGPG(QWidget *parent)
|
|||
connect(m_ui.keysbox, SIGNAL(currentIndexChanged(int)), this, SLOT(slotKeysBox(int)));
|
||||
connect(m_ui.startbutton, SIGNAL(clicked()), this, SLOT(slotStart()));
|
||||
|
||||
connect(m_ui.actionQuit, SIGNAL(triggered()), this, SLOT(slotQuit()));
|
||||
connect(m_ui.actionEncrypt, SIGNAL(triggered()), this, SLOT(slotEncryptMode()));
|
||||
connect(m_ui.actionDecrypt, SIGNAL(triggered()), this, SLOT(slotDecryptMode()));
|
||||
connect(m_ui.actionSign, SIGNAL(triggered()), this, SLOT(slotSignMode()));
|
||||
connect(m_ui.actionVerify, SIGNAL(triggered()), this, SLOT(slotVerifyMode()));
|
||||
|
||||
KAction* kaction = KStandardAction::quit(this, SLOT(slotQuit()), m_ui.menuFile);
|
||||
m_ui.menuFile->addAction((QAction*)kaction);
|
||||
|
||||
KHelpMenu* khelpmenu = new KHelpMenu(this, KGlobal::mainComponent().aboutData());
|
||||
menuBar()->addMenu((QMenu*)khelpmenu->menu());
|
||||
|
||||
|
|
|
@ -301,7 +301,6 @@
|
|||
<property name="title">
|
||||
<string>File</string>
|
||||
</property>
|
||||
<addaction name="actionQuit"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuMode">
|
||||
<property name="title">
|
||||
|
|
Loading…
Add table
Reference in a new issue