From 72190e0977c0e352e5055e6f65bf2095efa77805 Mon Sep 17 00:00:00 2001 From: aqua Date: Sun, 28 Aug 2022 17:36:28 +0300 Subject: Add actions to RekonqView - back, forward, refresh, reload --- src/tabbar/tabbar.cpp | 1 - src/tabbar/tabbar.h | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src/tabbar') diff --git a/src/tabbar/tabbar.cpp b/src/tabbar/tabbar.cpp index c8624bda..9bb05d43 100644 --- a/src/tabbar/tabbar.cpp +++ b/src/tabbar/tabbar.cpp @@ -15,7 +15,6 @@ static inline QByteArray highlightPropertyName(int index) return QByteArray("hAnim").append(QByteArray::number(index)); } - // ------------------------------------------------------------------------------------ TabBar::TabBar(QWidget *parent) : QTabBar(parent) diff --git a/src/tabbar/tabbar.h b/src/tabbar/tabbar.h index c305d1b5..077255a4 100644 --- a/src/tabbar/tabbar.h +++ b/src/tabbar/tabbar.h @@ -29,6 +29,12 @@ public: QRect tabTextRect(int index); */ + void setCurrentView(RekonqView *view) + { + const auto index = m_views.indexOf(view); + setCurrentIndex(index); + } + signals: void removeView(RekonqView *); -- cgit v1.2.1