From b225ab8ccd373f46c2f39044ac9832610b0b5910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20E=2E=20Narv=C3=A1ez?= Date: Mon, 26 Aug 2013 14:26:57 -0500 Subject: Reenable the Reload All Tabs Action Make the slot public and connect a tab context menu action to it. REVIEW: 112290 --- src/tabwindow/tabbar.cpp | 4 ++++ src/tabwindow/tabwidget.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/tabwindow/tabbar.cpp b/src/tabwindow/tabbar.cpp index eb062bf6..b64e5655 100644 --- a/src/tabwindow/tabbar.cpp +++ b/src/tabwindow/tabbar.cpp @@ -208,6 +208,10 @@ void TabBar::contextMenu(int tabIndex, const QPoint &pos) a->setData(tabIndex); menu.addAction(a); + a = new KAction(KIcon("view-refresh"), i18n("Reload All"), this); + connect(a, SIGNAL(triggered(bool)), w, SLOT(reloadAllTabs())); + menu.addAction(a); + if (count() > 1) { a = new KAction(KIcon("tab-detach"), i18n("Detach"), this); diff --git a/src/tabwindow/tabwidget.h b/src/tabwindow/tabwidget.h index 60561f1a..85c4d6a9 100644 --- a/src/tabwindow/tabwidget.h +++ b/src/tabwindow/tabwidget.h @@ -83,6 +83,7 @@ public: public Q_SLOTS: void loadUrl(const KUrl &, Rekonq::OpenType type = Rekonq::CurrentTab, TabHistory *history = 0); void newTab(WebPage *page = 0); + void reloadAllTabs(); Q_SIGNALS: void closeWindow(); @@ -121,7 +122,6 @@ private Q_SLOTS: void detachTab(int index = -1, RekonqWindow *toWindow = 0); void reloadTab(int index = -1); - void reloadAllTabs(); void bookmarkAllTabs(); void nextTab(); -- cgit v1.2.1