From 228bd405a579f1653462809dae12cb48f2df941c Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 29 Oct 2009 11:26:42 +0100 Subject: Fixing hide/show tab bar and flickering new tabs. That happened because of the code moving from mainview to tabbar (my fault) (tabbar cannot draw and be drawn..) --- src/tabbar.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/tabbar.h') diff --git a/src/tabbar.h b/src/tabbar.h index f68528b8..1601b3b6 100644 --- a/src/tabbar.h +++ b/src/tabbar.h @@ -42,7 +42,6 @@ // Forward Declarations class QPoint; -class QToolButton; class QMouseEvent; class QEvent; @@ -63,7 +62,6 @@ public: ~TabBar(); void showTabPreview(int tab); - void updateNewTabButton(); signals: void cloneTab(int index); @@ -77,6 +75,7 @@ protected: * Added to fix tab dimension */ virtual QSize tabSizeHint(int index) const; + virtual void mouseMoveEvent(QMouseEvent *event); virtual void leaveEvent(QEvent *event); virtual void mousePressEvent(QMouseEvent *event); @@ -87,14 +86,13 @@ private slots: void closeOtherTabs(); void reloadTab(); - void postLaunch(); - void slotContextMenuRequested(int, const QPoint &); void slotEmptyAreaContextMenu(const QPoint &); private: + friend class MainView; + MainView *m_parent; - QToolButton *m_addTabButton; /** * the index in which we are seeing a Context menu -- cgit v1.2.1