diff options
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index a3b222b3..ad11e1af 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -401,6 +401,11 @@ void MainWindow::setupActions() tabAction->setDelayed(false); actionCollection()->addAction(QL1S("tab_list"), tabAction); + // ============================== Bookmark ======================================= + a = KStandardAction::addBookmark(this, SLOT(bookmarkCurrentPage()), actionCollection()); + KShortcut bkShortcut(Qt::CTRL + Qt::Key_D); + a->setShortcut(bkShortcut); + //================================Download======================================== a = new KAction(KIcon("download"), i18n("Downloads"), this); a->setShortcut(KShortcut(Qt::CTRL + Qt::Key_J)); @@ -1669,3 +1674,9 @@ void MainWindow::loadCheckedUrl(const KUrl& url, const Rekonq::OpenType& type, Q } } } + + +void MainWindow::bookmarkCurrentPage() +{ + currentTab()->urlBar()->manageBookmarks(); +} |