mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 19:46:12 -04:00
Make Public TabBar::realTabCount()
Prepare for future change needing it externally
This commit is contained in:
parent
999f37fcb3
commit
88ed83dc7d
@ -52,6 +52,10 @@ public:
|
|||||||
QStringList getTabUrls() const;
|
QStringList getTabUrls() const;
|
||||||
QStringList getTabZimIds() const;
|
QStringList getTabZimIds() const;
|
||||||
|
|
||||||
|
// The "+" (new tab) button is implemented as a tab (that is always placed at the end).
|
||||||
|
// This function returns the count of real tabs.
|
||||||
|
int realTabCount() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void mousePressEvent(QMouseEvent *event);
|
void mousePressEvent(QMouseEvent *event);
|
||||||
void paintEvent(QPaintEvent *);
|
void paintEvent(QPaintEvent *);
|
||||||
@ -79,10 +83,6 @@ private:
|
|||||||
QStackedWidget* mp_stackedWidget;
|
QStackedWidget* mp_stackedWidget;
|
||||||
QScopedPointer<FullScreenWindow> m_fullScreenWindow;
|
QScopedPointer<FullScreenWindow> m_fullScreenWindow;
|
||||||
|
|
||||||
// The "+" (new tab) button is implemented as a tab (that is always placed at the end).
|
|
||||||
// This function returns the count of real tabs.
|
|
||||||
int realTabCount() const;
|
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void onTabMoved(int from, int to);
|
void onTabMoved(int from, int to);
|
||||||
void onCurrentChanged(int index);
|
void onCurrentChanged(int index);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user