From 688f124158e600b5feb4d627cfddf1f600a62cdd Mon Sep 17 00:00:00 2001 From: nils Date: Sun, 2 Jan 2011 03:27:25 +0000 Subject: added new tab action and made some minor bugfixes git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@420 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 d33b54c..c089bd5 100644 --- a/gpgwin.cpp +++ b/gpgwin.cpp @@ -125,6 +125,11 @@ void GpgWin::createActions() { /** Main Menu */ + newTabAct = new QAction(tr("&New Tab..."), this); +// openAct->setShortcut(QKeySequence::Open); + newTabAct->setToolTip(tr("Open a new tab")); + connect(newTabAct, SIGNAL(triggered()), edit, SLOT(newTab())); + openAct = new QAction(tr("&Open..."), this); openAct->setIcon(QIcon(iconPath + "fileopen.png")); openAct->setShortcut(QKeySequence::Open); @@ -284,6 +289,7 @@ void GpgWin::createActions() void GpgWin::createMenus() { fileMenu = menuBar()->addMenu(tr("&File")); + fileMenu->addAction(newTabAct); fileMenu->addAction(openAct); fileMenu->addAction(saveAct); fileMenu->addAction(saveAsAct); -- cgit v1.2.3