summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-07-29 01:45:13 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-07-29 01:45:13 +0200
commit0f54a42cb67e7da16ab529925cd38efa54d58352 (patch)
treeaa30cbc4e28211e4a0701da99f6ed39a507cb255 /src/mainwindow.cpp
parentSimplifying a bit web load progress process structure (diff)
downloadrekonq-0f54a42cb67e7da16ab529925cd38efa54d58352.tar.xz
Including web shortcuts configuration dialog.
We can actually just include it externally. Anyway this let user think a bit more that this is not a rekonq related configuration dialog
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 2f74bd8a..ea387ae0 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -327,6 +327,11 @@ void MainWindow::setupActions()
a = new KAction(KIcon("edit-clear"), i18n("Clear private data"), this);
actionCollection()->addAction(QLatin1String("clear_private_data"), a);
connect(a, SIGNAL(triggered(bool)), this, SLOT(clearPrivateData()));
+
+ // configure web shortcuts action
+ a = new KAction(KIcon("preferences-web-browser-shortcuts"), i18n("Web Shortcuts"), this);
+ actionCollection()->addAction(QLatin1String("web_shortcuts"), a);
+ connect(a, SIGNAL(triggered(bool)), this, SLOT(configureWebShortcuts()));
}
@@ -356,7 +361,9 @@ void MainWindow::setupTools()
toolsMenu->addSeparator();
- toolsMenu->addAction(KStandardAction::helpContents(this, SLOT(appHelpActivated()), actionCollection()));
+ // TODO: decide if re-enable this when rekonq docs will be written
+ // toolsMenu->addAction(KStandardAction::helpContents(this, SLOT(appHelpActivated()), actionCollection()));
+ toolsMenu->addAction(actionByName(QLatin1String("web_shortcuts")));
toolsMenu->addAction(actionByName(KStandardAction::name(KStandardAction::Preferences)));
// adding rekonq_tools to rekonq actionCollection
@@ -979,4 +986,9 @@ void MainWindow::clearPrivateData()
// delete dialog;
}
+
+void MainWindow::configureWebShortcuts()
+{
+ KRun::run( "kcmshell4 ebrowsing", KUrl::List(), this);
+}
\ No newline at end of file