summaryrefslogtreecommitdiff
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
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
-rw-r--r--src/mainwindow.cpp14
-rw-r--r--src/mainwindow.h3
-rw-r--r--src/rekonqui.rc1
3 files changed, 16 insertions, 2 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
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 2cf880b8..b3f88472 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -131,7 +131,8 @@ private slots:
// Settings Menu slots
void slotShowMenubar(bool enable);
void slotPreferences();
-
+ void configureWebShortcuts();
+
// clear private data
void clearPrivateData();
diff --git a/src/rekonqui.rc b/src/rekonqui.rc
index 6b250ab3..03b85527 100644
--- a/src/rekonqui.rc
+++ b/src/rekonqui.rc
@@ -63,6 +63,7 @@
<Action name="web_inspector" />
<Action name="private_browsing" />
<Action name="clear_private_data" />
+ <Action name="web_shortcuts" />
</Menu>
<!-- ============ SETTINGS menu =========== -->