From 197455a6044b66bdfdd479f07f4ad52649816998 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 25 Jul 2012 17:30:52 +0200 Subject: Re-add && Re-view tab preview popup --- src/tabwindow/tabbar.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/tabwindow/tabbar.h') 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 // 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 m_highlightAnimation; QSignalMapper *m_animationMapper; + + // tab preview + QWeakPointer m_previewPopup; + int m_currentTabPreviewIndex; + bool m_isFirstTimeOnTab; }; #endif // TAB_BAR -- cgit v1.2.1