|
|
|
|
@ -136,6 +136,13 @@ public slots: |
|
|
|
|
void ensureVisible(int index = -1, int xmargin = -1); |
|
|
|
|
void setCurrentIndex(int index); |
|
|
|
|
|
|
|
|
|
signals: |
|
|
|
|
void overFlowChanged(bool overFlow); |
|
|
|
|
void currentChanged(int index); |
|
|
|
|
void tabCloseRequested(int index); |
|
|
|
|
void tabMoved(int from, int to); |
|
|
|
|
void scrollBarValueChanged(int value); |
|
|
|
|
|
|
|
|
|
private slots: |
|
|
|
|
void setMinimumWidths(); |
|
|
|
|
void slotCurrentChanged(int index); |
|
|
|
|
@ -147,6 +154,7 @@ private slots: |
|
|
|
|
protected: |
|
|
|
|
int mainTabBarWidth() const; |
|
|
|
|
int pinTabBarWidth() const; |
|
|
|
|
|
|
|
|
|
void wheelEvent(QWheelEvent* event); |
|
|
|
|
void showEvent(QShowEvent* event); |
|
|
|
|
void enterEvent(QEvent* event); |
|
|
|
|
@ -160,10 +168,10 @@ protected: |
|
|
|
|
virtual void tabRemoved(int index); |
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
TabBarHelper* mainTabBar() const; |
|
|
|
|
TabBarHelper* localTabBar(int index = -1) const; |
|
|
|
|
int toLocalIndex(int globalIndex) const; |
|
|
|
|
|
|
|
|
|
inline TabBarHelper* mainTabBar() { return m_mainTabBar; } |
|
|
|
|
int toLocalIndex(int globalIndex) const; |
|
|
|
|
void updatePinnedTabBarVisibility(); |
|
|
|
|
|
|
|
|
|
QHBoxLayout* m_mainLayout; |
|
|
|
|
@ -177,13 +185,6 @@ private: |
|
|
|
|
QString m_closeButtonsToolTip; |
|
|
|
|
bool m_mainBarOverFlowed; |
|
|
|
|
bool m_usesScrollButtons; |
|
|
|
|
|
|
|
|
|
signals: |
|
|
|
|
void overFlowChanged(bool overFlow); |
|
|
|
|
void currentChanged(int index); |
|
|
|
|
void tabCloseRequested(int index); |
|
|
|
|
void tabMoved(int from, int to); |
|
|
|
|
void scrollBarValueChanged(int value); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
class QUPZILLA_EXPORT TabBarHelper : public QTabBar |
|
|
|
|
|