summaryrefslogtreecommitdiff
path: root/src/tabwindow/tabbar.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-08-21 17:24:57 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:05 +0100
commit79170a62caf1cea6ab167ef6fe49d319a6eb9f29 (patch)
treea2c37853d86da56bf61c2649631463d2eae2d578 /src/tabwindow/tabbar.h
parentGet sure rekonq makes use of djvu plugin (diff)
downloadrekonq-79170a62caf1cea6ab167ef6fe49d319a6eb9f29.tar.xz
Fix tabbar size & new tab button position
Also, set tab preview popup width fixed This is heavily based on commits about this problem by Yoann Laissus. I modified a bit them to fit there + added (based on his idea) a double fixed size (default + minimal) for tabs
Diffstat (limited to 'src/tabwindow/tabbar.h')
-rw-r--r--src/tabwindow/tabbar.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/tabwindow/tabbar.h b/src/tabwindow/tabbar.h
index 68ff3361..8dcab051 100644
--- a/src/tabwindow/tabbar.h
+++ b/src/tabwindow/tabbar.h
@@ -54,8 +54,6 @@ public:
void setTabHighlighted(int index, bool b);
QRect tabTextRect(int index);
- static const int genericTabNumber = 6;
-
protected:
virtual QSize tabSizeHint(int index) const;
@@ -64,7 +62,8 @@ protected:
virtual void mousePressEvent(QMouseEvent *event);
virtual void tabRemoved(int index);
-
+ virtual void tabLayoutChange();
+
Q_SIGNALS:
void cloneTab(int);
void closeTab(int);
@@ -72,7 +71,8 @@ Q_SIGNALS:
void reloadTab(int);
void detachTab(int);
void restoreClosedTab(int);
-
+ void tabLayoutChanged();
+
private Q_SLOTS:
void cloneTab();
void closeTab();
@@ -99,6 +99,9 @@ private:
QWeakPointer<TabPreviewPopup> m_previewPopup;
int m_currentTabPreviewIndex;
bool m_isFirstTimeOnTab;
+
+ static const int c_baseTabWidth = 200;
+ static const int c_minTabWidth = 100;
};
#endif // TAB_BAR