aboutsummaryrefslogtreecommitdiffstats
path: root/gpgwin.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-06-02 23:06:13 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-06-02 23:06:13 +0000
commitc6d6428273e9c0330976f8fafb46e5271407aab9 (patch)
tree3e2c9f2794da32845fdfb4a00e520dbb598c43e8 /gpgwin.cpp
parentshortcuts independent of language and os works now (diff)
downloadgpg4usb-c6d6428273e9c0330976f8fafb46e5271407aab9.tar.gz
gpg4usb-c6d6428273e9c0330976f8fafb46e5271407aab9.zip
added undo to edit menu and updated language files
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@344 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'gpgwin.cpp')
-rw-r--r--gpgwin.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gpgwin.cpp b/gpgwin.cpp
index 7d9c789..e485d3a 100644
--- a/gpgwin.cpp
+++ b/gpgwin.cpp
@@ -134,6 +134,11 @@ void GpgWin::createActions()
/** Edit Menu
*/
+ undoAct = new QAction(tr("&Undo"), this);
+ undoAct->setShortcut(QKeySequence::Undo);
+ undoAct->setToolTip(tr("Undo Last Edit Action"));
+ connect(undoAct, SIGNAL(triggered()), edit, SLOT(undo()));
+
pasteAct = new QAction(tr("&Paste"), this);
pasteAct->setIcon(QIcon(iconPath + "button_paste.png"));
pasteAct->setShortcut(QKeySequence::Paste);
@@ -241,6 +246,7 @@ void GpgWin::createMenus()
fileMenu->addAction(quitAct);
editMenu = menuBar()->addMenu(tr("&Edit"));
+ editMenu->addAction(undoAct);
editMenu->addAction(copyAct);
editMenu->addAction(cutAct);
editMenu->addAction(pasteAct);