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

@@ -102,11 +102,6 @@ QSize FrameWidget::maxSizeHint() const
return waste + biggestDockWidgetMaxSize();
}
void FrameWidget::detachTab_impl(DockWidgetBase *dw)
{
m_tabWidget->detachTab(dw);
}
int FrameWidget::indexOfDockWidget_impl(DockWidgetBase *dw)
{
return m_tabWidget->indexOfDockWidget(dw);