summaryrefslogtreecommitdiff
path: root/src/tabbar.h
diff options
context:
space:
mode:
authorVyacheslav Blinov <blinov.vyacheslav@gmail.com>2011-07-15 10:24:08 +0200
committerAndrea Diamantini <adjam7@gmail.com>2011-07-15 10:24:08 +0200
commit1feccda4818f0dd7c98cf55032f05b3071135fe2 (patch)
tree95ec79aa993d5c621429dc0c5b903c55fba660f6 /src/tabbar.h
parentChange KMessageWidget message type (diff)
downloadrekonq-1feccda4818f0dd7c98cf55032f05b3071135fe2.tar.xz
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
Diffstat (limited to 'src/tabbar.h')
-rw-r--r--src/tabbar.h12
1 files changed, 6 insertions, 6 deletions
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 <QSignalMapper>
// 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<KPassivePopup> m_previewPopup;
+ QWeakPointer<TabPreviewPopup> m_previewPopup;
/**
* the index of the tab preview shown