From 88ed83dc7dad2bc8653edb5361e172f8d14e525b Mon Sep 17 00:00:00 2001 From: ShaopengLin Date: Mon, 16 Sep 2024 08:13:54 -0400 Subject: [PATCH] Make Public TabBar::realTabCount() Prepare for future change needing it externally --- src/tabbar.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tabbar.h b/src/tabbar.h index d29db33..808daca 100644 --- a/src/tabbar.h +++ b/src/tabbar.h @@ -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 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);