aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-01-23 23:16:05 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-01-23 23:16:05 +0000
commit8bd8643ef1f91d2e2aa027e7e3b2deccb671b28f (patch)
tree8183bb1ee423ef0cc6e8e5ee01b87a6b43499907
parentformat text, filenames in save-as dialog, set version to 0.3 (diff)
downloadgpg4usb-8bd8643ef1f91d2e2aa027e7e3b2deccb671b28f.tar.gz
gpg4usb-8bd8643ef1f91d2e2aa027e7e3b2deccb671b28f.zip
<CTRL> N for new tab default, <CTRL> T still works
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@445 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r--gpgwin.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gpgwin.cpp b/gpgwin.cpp
index cfbdbd9..ac36b85 100644
--- a/gpgwin.cpp
+++ b/gpgwin.cpp
@@ -126,7 +126,11 @@ void GpgWin::createActions()
/** Main Menu
*/
newTabAct = new QAction(tr("&New"), this);
- newTabAct->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_T));
+ QList<QKeySequence> newTabActShortcutList;
+ newTabActShortcutList.append(QKeySequence (Qt::CTRL + Qt::Key_N));
+ newTabActShortcutList.append(QKeySequence (Qt::CTRL + Qt::Key_T));
+ newTabAct->setShortcuts(newTabActShortcutList);
+
newTabAct->setToolTip(tr("Open a new file"));
connect(newTabAct, SIGNAL(triggered()), edit, SLOT(newTab()));