From 1feccda4818f0dd7c98cf55032f05b3071135fe2 Mon Sep 17 00:00:00 2001 From: Vyacheslav Blinov Date: Fri, 15 Jul 2011 10:24:08 +0200 Subject: Improving tab previews Improvements: * title of the page is removed since it is visible on a tab. * widget now has a smooth 3d look'n'feel with Oxygen thanks to raisen frame * widget has rouned corners in all the styles * url of the page is elided * with compositing tab previews will be shown semitransparent with 25% alpha by default, witch can be setted to be optional later * code of tab preview is now separated from tab bar so it is more explicit REVIEWED BY: Johannes, Andrea, Pierre CCMAIL: blinov.vyacheslav@gmail.com REVIEW: 101848 --- src/tabbar.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/tabbar.h') diff --git a/src/tabbar.h b/src/tabbar.h index c1b0ba5c..1949673f 100644 --- a/src/tabbar.h +++ b/src/tabbar.h @@ -41,7 +41,7 @@ #include // Forward Declarations -class KPassivePopup; +class TabPreviewPopup; class TabHighlightEffect; class QPropertyAnimation; @@ -63,6 +63,10 @@ public: QRect tabTextRect(int index); void setAnimatedTabHighlighting(bool enabled); + //constants + static const int baseWidthDivisor = 4; + static const int minWidthDivisor = 8; + signals: void cloneTab(int index); void closeTab(int index); @@ -101,10 +105,6 @@ private slots: void removeAnimation(int index); private: - //constants - static const int baseWidthDivisor = 4; - static const int minWidthDivisor = 8; - void setupHistoryActions(); friend class MainView; @@ -113,7 +113,7 @@ private: */ int m_actualIndex; - QWeakPointer m_previewPopup; + QWeakPointer m_previewPopup; /** * the index of the tab preview shown -- cgit v1.2.1