Move more methods away from StackViewInterface

Let's just have TabBarViewInterface, which is similar
This commit is contained in:
Sergio Martins
2022-08-13 20:35:09 +01:00
parent fb59e30c59
commit 3ffe116a02
19 changed files with 127 additions and 217 deletions

View File

@@ -61,15 +61,20 @@ public:
Q_INVOKABLE void setCurrentIndex(int index) override;
bool tabsAreMovable() const override;
Stack_qtquick *stackView() const;
void renameTab(int index, const QString &) override;
void changeTabIcon(int index, const QIcon &icon) override;
/// 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;
Controllers::DockWidget *dockWidgetAt(int index) const override;
int indexOfDockWidget(const Controllers::DockWidget *dw) const override;
void removeDockWidget(Controllers::DockWidget *) override;
bool insertDockWidget(int index, Controllers::DockWidget *, const QIcon &,
const QString &title) override;
Q_SIGNALS:
void tabBarQmlItemChanged();
void tabBarAutoHideChanged();