Move move code from StackViewInterface.h to TabBarViewInterface.h

Phasing out the former, so frontend writers don't have to implement
two duplicate interfaces
This commit is contained in:
Sergio Martins
2022-08-13 14:11:33 +01:00
parent de3ef59506
commit 1abebef40b
20 changed files with 124 additions and 53 deletions

View File

@@ -37,6 +37,7 @@ namespace KDDockWidgets::Views {
class DockWidget;
class TabWidget;
class Stack_qtquick;
class DOCKS_EXPORT TabBar_qtquick : public View_qtquick, public TabBarViewInterface
{
@@ -56,12 +57,18 @@ public:
void moveTabTo(int from, int to) override;
Controllers::DockWidget *currentDockWidget() const override;
int currentIndex() const override;
bool tabsAreMovable() const override;
Stack_qtquick *stackView() const;
/// Returns whether the tab bar should hide when there's only 1 tab visible
/// Default true, unless Flag_HideTitleBarWhenTabsVisible
bool tabBarAutoHide() const;
int numDockWidgets() const override;
Controllers::DockWidget *dockwidgetAt(int index) const override;
int indexOfDockWidget(const Controllers::DockWidget *dw) const override;
Q_SIGNALS:
void tabBarQmlItemChanged();
void tabBarAutoHideChanged();