From fc669e0bf82018baa70a8b59529e1a571d5ad820 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 10 Feb 2011 19:05:45 +0100 Subject: highlights inactive tabs if title changes Courtesy patch by Johannes Troscher. Thanks :) Reviewed by: adjam Reviewed by: elproxy --- src/tabbar.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/tabbar.h') diff --git a/src/tabbar.h b/src/tabbar.h index b505f78b..a467e96e 100644 --- a/src/tabbar.h +++ b/src/tabbar.h @@ -39,6 +39,7 @@ // Forward Declarations class KPassivePopup; +class TabHighlightEffect; /** @@ -54,6 +55,9 @@ public: explicit TabBar(QWidget *parent); virtual ~TabBar() {} + void setTabHighlighted(int index, bool highlighted); + QRect tabTextRect(int index); + signals: void cloneTab(int index); void closeTab(int index); @@ -74,7 +78,7 @@ protected: virtual void leaveEvent(QEvent *event); virtual void mousePressEvent(QMouseEvent *event); virtual void mouseReleaseEvent(QMouseEvent *event); - virtual void tabRemoved(int); + virtual void tabRemoved(int index); private slots: void cloneTab(); @@ -104,6 +108,7 @@ private: */ int m_currentTabPreviewIndex; bool m_isFirstTimeOnTab; + TabHighlightEffect *m_tabHighlightEffect; }; #endif -- cgit v1.2.1