diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-02-14 22:41:44 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-02-14 22:41:44 +0100 |
commit | a619df7d9e26b6c30a57a4652be85e6e2aa0ff5f (patch) | |
tree | b8f4ca15a72ce6f17ba180296b7acd3912563882 /src/tabbar.h | |
parent | Replace webshorcuts icons and text. (diff) | |
download | rekonq-a619df7d9e26b6c30a57a4652be85e6e2aa0ff5f.tar.xz |
Highlights inactive tabs if title changes.
Fantastic patch by Johannes Troscher.
Reviewed by benjaminp (mainly) and adjam
Diffstat (limited to 'src/tabbar.h')
-rw-r--r-- | src/tabbar.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/tabbar.h b/src/tabbar.h index b505f78b..d0d9d3e6 100644 --- a/src/tabbar.h +++ b/src/tabbar.h @@ -37,8 +37,13 @@ // KDE Includes #include <KTabBar> +//Qt Includes +#include <QSignalMapper> + // Forward Declarations class KPassivePopup; +class TabHighlightEffect; +class QPropertyAnimation; /** @@ -54,6 +59,10 @@ public: explicit TabBar(QWidget *parent); virtual ~TabBar() {} + void setTabHighlighted(int index); + void resetTabHighlighted(int index); + QRect tabTextRect(int index); + signals: void cloneTab(int index); void closeTab(int index); @@ -74,7 +83,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(); @@ -88,6 +97,8 @@ private slots: void showTabPreview(); + void removeAnimation(int index); + private: void setupHistoryActions(); friend class MainView; @@ -104,6 +115,11 @@ private: */ int m_currentTabPreviewIndex; bool m_isFirstTimeOnTab; + + //highlightAnimation + TabHighlightEffect *m_tabHighlightEffect; + QHash<QByteArray, QPropertyAnimation*> m_highlightAnimation; + QSignalMapper *m_animationMapper; }; #endif |