diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-12-08 22:44:34 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-12-08 22:44:34 +0000 |
commit | ed2a98efce47f922252f2e250c7a453b16d585dc (patch) | |
tree | 2e16f5fe49080586dd8cd4f80a932ad8f0f07d72 /mainwindow.cpp | |
parent | new icon and title for 'remove double linebreaks' (diff) | |
download | gpg4usb-ed2a98efce47f922252f2e250c7a453b16d585dc.tar.gz gpg4usb-ed2a98efce47f922252f2e250c7a453b16d585dc.zip |
reorganize help menu
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@685 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r-- | mainwindow.cpp | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index cbebe18..c1eb521 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -320,8 +320,12 @@ void MainWindow::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->setToolTip(tr("Open Online Tutorial")); + openHelpAct = new QAction(tr("Integrated Help"), this); + openHelpAct->setToolTip(tr("Open integrated Help")); + connect(openHelpAct, SIGNAL(triggered()), this, SLOT(openHelp())); + + openTutorialAct = new QAction(tr("Online &Tutorials"), this); + openTutorialAct->setToolTip(tr("Open Online Tutorials")); connect(openTutorialAct, SIGNAL(triggered()), this, SLOT(openTutorial())); openTranslateAct = new QAction(tr("Translate gpg4usb"), this); @@ -423,9 +427,12 @@ void MainWindow::createMenus() viewMenu = menuBar()->addMenu(tr("&View")); helpMenu = menuBar()->addMenu(tr("&Help")); + helpMenu->addAction(openHelpAct); + helpMenu->addAction(startWizardAct); + helpMenu->addSeparator(); helpMenu->addAction(openTutorialAct); helpMenu->addAction(openTranslateAct); - helpMenu->addAction(startWizardAct); + helpMenu->addSeparator(); helpMenu->addAction(aboutAct); } @@ -615,10 +622,14 @@ void MainWindow::openTranslate() { } void MainWindow::openTutorial() { - //QDesktopServices::openUrl(QUrl("http://gpg4usb.cpunk.de/docu.html")); + QDesktopServices::openUrl(QUrl("http://gpg4usb.cpunk.de/docu.html")); +} + +void MainWindow::openHelp() { edit->newHelpTab("help", qApp->applicationDirPath() + "/help/docu.html"); } + void MainWindow::startWizard() { Wizard *wizard = new Wizard(mCtx,this); |