From 32e15f0ecaef0bb3a12f6ed823ea0dde0dbd5b79 Mon Sep 17 00:00:00 2001 From: nils Date: Mon, 24 Jan 2011 22:41:08 +0000 Subject: added platform independent shortcut for close tab and preferences git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@450 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- gpgwin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpgwin.cpp b/gpgwin.cpp index 172a913..3da557c 100644 --- a/gpgwin.cpp +++ b/gpgwin.cpp @@ -159,7 +159,7 @@ void GpgWin::createActions() connect(printAct, SIGNAL(triggered()), edit, SLOT(print())); closeTabAct = new QAction(tr("&Close"), this); - closeTabAct->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_W)); + closeTabAct->setShortcut(QKeySequence::Close); closeTabAct->setToolTip(tr("Close file")); connect(closeTabAct, SIGNAL(triggered()), edit, SLOT(closeTab())); @@ -214,7 +214,7 @@ void GpgWin::createActions() openSettingsAct = new QAction(tr("Se&ttings"), this); openSettingsAct->setToolTip(tr("Open settings dialog")); -// openSettingsAct->setShortcut(QKeySequence::Preferences); + openSettingsAct->setShortcut(QKeySequence::Preferences); connect(openSettingsAct, SIGNAL(triggered()), this, SLOT(openSettingsDialog())); /** Crypt Menu -- cgit v1.2.3