summaryrefslogtreecommitdiff
path: root/src/tabwindow/tabbar.h
diff options
context:
space:
mode:
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