summaryrefslogtreecommitdiff
path: root/src/tabbar.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-02-10 19:05:45 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-02-10 19:05:45 +0100
commitfc669e0bf82018baa70a8b59529e1a571d5ad820 (patch)
treed347c2ffa43d4d2a261b4f4e9a21f623397f280d /src/tabbar.h
parentFix issue 258905: mark window in taskbar when opening link from external apps... (diff)
downloadrekonq-fc669e0bf82018baa70a8b59529e1a571d5ad820.tar.xz
highlights inactive tabs if title changes
Courtesy patch by Johannes Troscher. Thanks :) Reviewed by: adjam Reviewed by: elproxy
Diffstat (limited to 'src/tabbar.h')
-rw-r--r--src/tabbar.h7
1 files changed, 6 insertions, 1 deletions
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