aboutsummaryrefslogtreecommitdiffstats
path: root/gpgwin.cpp
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-05-18 19:13:19 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-05-18 19:13:19 +0000
commit94afd11fc7b45a4f6f2a7399b7ca0178ef6c0a0f (patch)
tree36e70043c42dd1b52a106928f1356a7262eb3cd5 /gpgwin.cpp
parentrepaired shortcuts and made the most of them OS conform (in Linux other than ... (diff)
downloadgpg4usb-94afd11fc7b45a4f6f2a7399b7ca0178ef6c0a0f.tar.gz
gpg4usb-94afd11fc7b45a4f6f2a7399b7ca0178ef6c0a0f.zip
add link to online tutorials in help menu
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@342 34ebc366-c3a9-4b3c-9f84-69acf7962910
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();