From 3e97b8f91c33f6b49a93c59b0bcb267fe47554f9 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 16 Oct 2012 19:36:37 +0200 Subject: Zoom actionis restored, yeah! :D --- src/webwindow/rekonqui.rc | 162 ++++++++++++++++++++++++++++++++++++++++++++ src/webwindow/webwindow.cpp | 8 ++- 2 files changed, 169 insertions(+), 1 deletion(-) create mode 100644 src/webwindow/rekonqui.rc (limited to 'src/webwindow') diff --git a/src/webwindow/rekonqui.rc b/src/webwindow/rekonqui.rc new file mode 100644 index 00000000..ef6294a4 --- /dev/null +++ b/src/webwindow/rekonqui.rc @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + &Zoom + + + + + + + + + &Tools + + + + + + + + + + + + + + + + + + + + + + &Help + + + + + + + + + + + + + + + + + + + &File + + + + + + + + + + + + + + + + &Edit + + + + + + + + + + + + + + &View + + + + + + + + + + + + + + + + Hi&story + + + + &Bookmarks + + + + &Tools + + + + + + + + + + + + + &Settings + + + + + + + + + + + + + + +Main Toolbar + + + + + + + + + + Bookmark Toolbar + + + diff --git a/src/webwindow/webwindow.cpp b/src/webwindow/webwindow.cpp index 0c635800..adca789e 100644 --- a/src/webwindow/webwindow.cpp +++ b/src/webwindow/webwindow.cpp @@ -140,7 +140,8 @@ WebWindow::WebWindow(QWidget *parent, WebPage *pg) m_popup->hide(); connect(m_hidePopupTimer, SIGNAL(timeout()), m_popup, SLOT(hide())); connect(_tab->page(), SIGNAL(linkHovered(QString, QString, QString)), this, SLOT(notifyMessage(QString))); - + connect(_tab, SIGNAL(infoToShow(QString)), this, SLOT(notifyMessage(QString))); + updateHistoryActions(); } @@ -257,6 +258,11 @@ void WebWindow::setupActions() actionCollection()->addAction(QL1S("clear_private_data"), a); connect(a, SIGNAL(triggered(bool)), rApp, SLOT(clearPrivateData())); + // Zoom ============== + KStandardAction::zoomIn(_tab, SLOT(zoomIn()), actionCollection()); + KStandardAction::zoomOut(_tab, SLOT(zoomOut()), actionCollection()); + KStandardAction::zoom(_tab, SLOT(zoomDefault()), actionCollection()); + // Bookmark ========== a = KStandardAction::addBookmark(_bar, SLOT(manageBookmarks()), actionCollection()); KShortcut bkShortcut(Qt::CTRL + Qt::Key_D); -- cgit v1.2.1