aboutsummaryrefslogtreecommitdiffstats
path: root/gpgwin.cpp
diff options
context:
space:
mode:
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 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);