summaryrefslogtreecommitdiff
path: root/src/tabwindow/tabbar.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-07-25 10:08:59 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:04 +0100
commit6a291bc696903c508ecc55fbd2b4f227d4ef6eef (patch)
tree2eac7be129ac2bc52e7d58ed245188c80fb953af /src/tabwindow/tabbar.h
parentCoding style (diff)
downloadrekonq-6a291bc696903c508ecc55fbd2b4f227d4ef6eef.tar.xz
Re-view and re-add tab highlight feature
Diffstat (limited to 'src/tabwindow/tabbar.h')
-rw-r--r--src/tabwindow/tabbar.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/tabwindow/tabbar.h b/src/tabwindow/tabbar.h
index 9de5fe0a..4cc437ac 100644
--- a/src/tabwindow/tabbar.h
+++ b/src/tabwindow/tabbar.h
@@ -25,6 +25,13 @@
// KDE Includes
#include <KTabBar>
+#include <QPropertyAnimation>
+
+// Forward Declarations
+class TabHighlightEffect;
+
+class QSignalMapper;
+
class TabBar : public KTabBar
{
@@ -33,6 +40,9 @@ class TabBar : public KTabBar
public:
TabBar(QWidget *parent);
+ void setTabHighlighted(int index, bool b);
+ QRect tabTextRect(int index);
+
static const int genericTabNumber = 6;
protected:
@@ -56,6 +66,14 @@ private Q_SLOTS:
void contextMenu(int, const QPoint &);
void emptyAreaContextMenu(const QPoint &);
+
+ void removeAnimation(int index);
+
+private:
+ // highlightAnimation
+ TabHighlightEffect *m_tabHighlightEffect;
+ QHash<QByteArray, QPropertyAnimation*> m_highlightAnimation;
+ QSignalMapper *m_animationMapper;
};
#endif // TAB_BAR