summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid E. Narváez <david.narvaez@computer.org>2013-08-26 14:26:57 -0500
committerDavid E. Narváez <david.narvaez@computer.org>2013-08-26 14:26:57 -0500
commitb225ab8ccd373f46c2f39044ac9832610b0b5910 (patch)
treed2883c6cdbb778059076e19635669e02492c8ddf
parentSet the Base URL of Error Pages (diff)
downloadrekonq-b225ab8ccd373f46c2f39044ac9832610b0b5910.tar.xz
Reenable the Reload All Tabs Action
Make the slot public and connect a tab context menu action to it. REVIEW: 112290
-rw-r--r--src/tabwindow/tabbar.cpp4
-rw-r--r--src/tabwindow/tabwidget.h2
2 files changed, 5 insertions, 1 deletions
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();