From c6d6428273e9c0330976f8fafb46e5271407aab9 Mon Sep 17 00:00:00 2001 From: nils Date: Wed, 2 Jun 2010 23:06:13 +0000 Subject: 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 --- gpgwin.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gpgwin.cpp') 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); -- cgit v1.2.3