Move TabBar::detachTab() to Frame

As the code doesn't have anything specific to QTabBar.
Means QtQuick can reuse it without needing a TabBarQuick.

tst_crash now passes for QtQuick too
This commit is contained in:
Sergio Martins
2020-10-18 23:06:36 +01:00
parent 65599399c7
commit 51ccbe7c7c
11 changed files with 44 additions and 79 deletions

View File

@@ -47,7 +47,6 @@ protected:
void setCurrentDockWidget(int index) override;
void insertDockWidget(int index, DockWidgetBase *, const QIcon&, const QString &title) override;
void setTabBarAutoHide(bool) override;
void detachTab(DockWidgetBase *dockWidget) override;
void renameTab(int index, const QString &) override;
DockWidgetBase *dockwidgetAt(int index) const override;