aboutsummaryrefslogtreecommitdiffstats
path: root/gpgwin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gpgwin.cpp')
-rw-r--r--gpgwin.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/gpgwin.cpp b/gpgwin.cpp
index 006826e..7d9c789 100644
--- a/gpgwin.cpp
+++ b/gpgwin.cpp
@@ -218,6 +218,11 @@ void GpgWin::createActions()
aboutAct->setToolTip(tr("Show the application's About box"));
connect(aboutAct, SIGNAL(triggered()), this, SLOT(about()));
+ openTutorialAct = new QAction(tr("Online &Tutorial"), this);
+ openTutorialAct->setIcon(QIcon(iconPath + "help.png"));
+ openTutorialAct->setToolTip(tr("Open Online Tutorial"));
+ connect(openTutorialAct, SIGNAL(triggered()), this, SLOT(openTutorial()));
+
/** Popup-Menu-Action for KeyList
*/
appendSelectedKeysAct = new QAction(tr("Append Selected Key(s) To Text"), this);
@@ -259,6 +264,7 @@ void GpgWin::createMenus()
viewMenu = menuBar()->addMenu(tr("&View"));
helpMenu = menuBar()->addMenu(tr("&Help"));
+ helpMenu->addAction(openTutorialAct);
helpMenu->addAction(aboutAct);
}
@@ -480,6 +486,10 @@ void GpgWin::about()
"gpg4usb at conference.jabber.ccc.de</center>"));
}
+void GpgWin::openTutorial() {
+ QDesktopServices::openUrl(QUrl("http://gpg4usb.cpunk.de/docu.html"));
+}
+
void GpgWin::encrypt()
{
QStringList *uidList = mKeyList->getChecked();