summaryrefslogtreecommitdiff
path: root/src/tabbar
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabbar')
-rw-r--r--src/tabbar/tabbar.cpp1
-rw-r--r--src/tabbar/tabbar.h6
2 files changed, 6 insertions, 1 deletions
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 *);