diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwindow.cpp | 14 | ||||
-rw-r--r-- | src/mainwindow.h | 3 | ||||
-rw-r--r-- | src/rekonqui.rc | 1 |
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 =========== --> |