From 94afd11fc7b45a4f6f2a7399b7ca0178ef6c0a0f Mon Sep 17 00:00:00 2001 From: ubbo Date: Tue, 18 May 2010 19:13:19 +0000 Subject: add link to online tutorials in help menu git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@342 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- gpgwin.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gpgwin.cpp') 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")); } +void GpgWin::openTutorial() { + QDesktopServices::openUrl(QUrl("http://gpg4usb.cpunk.de/docu.html")); +} + void GpgWin::encrypt() { QStringList *uidList = mKeyList->getChecked(); -- cgit v1.2.3