Make Public TabBar::realTabCount()

Prepare for future change needing it externally
This commit is contained in:
ShaopengLin 2024-09-16 08:13:54 -04:00
parent 999f37fcb3
commit 88ed83dc7d

View File

@ -52,6 +52,10 @@ public:
QStringList getTabUrls() 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:
void mousePressEvent(QMouseEvent *event);
void paintEvent(QPaintEvent *);
@ -79,10 +83,6 @@ private:
QStackedWidget* mp_stackedWidget;
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:
void onTabMoved(int from, int to);
void onCurrentChanged(int index);