diff options
Diffstat (limited to 'src/tabwindow/tabbar.h')
-rw-r--r-- | src/tabwindow/tabbar.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tabwindow/tabbar.h b/src/tabwindow/tabbar.h index 4cc437ac..af97c998 100644 --- a/src/tabwindow/tabbar.h +++ b/src/tabwindow/tabbar.h @@ -28,6 +28,7 @@ #include <QPropertyAnimation> // Forward Declarations +class TabPreviewPopup; class TabHighlightEffect; class QSignalMapper; @@ -48,6 +49,12 @@ public: protected: virtual QSize tabSizeHint(int index) const; + virtual void mouseMoveEvent(QMouseEvent *event); + virtual void leaveEvent(QEvent *event); + virtual void mousePressEvent(QMouseEvent *event); + + virtual void tabRemoved(int index); + Q_SIGNALS: void cloneTab(int); void closeTab(int); @@ -69,11 +76,19 @@ private Q_SLOTS: void removeAnimation(int index); + void showTabPreview(); + void hideTabPreview(); + private: // highlightAnimation TabHighlightEffect *m_tabHighlightEffect; QHash<QByteArray, QPropertyAnimation*> m_highlightAnimation; QSignalMapper *m_animationMapper; + + // tab preview + QWeakPointer<TabPreviewPopup> m_previewPopup; + int m_currentTabPreviewIndex; + bool m_isFirstTimeOnTab; }; #endif // TAB_BAR |