Add Frame::detachTab()

The tab widget will be an implementation detail of FrameWidget and
not accessed by anyone
This commit is contained in:
Sergio Martins
2020-06-03 21:18:38 +01:00
parent e418725c13
commit 0a75d89848
5 changed files with 15 additions and 6 deletions

View File

@@ -83,6 +83,11 @@ QSize FrameWidget::maxSizeHint() const
return waste + biggestDockWidgetMaxSize();
}
void FrameWidget::detachTab(DockWidgetBase *dw)
{
tabWidget()->detachTab(dw);
}
QTabBar *FrameWidget::tabBar() const
{
auto tw = static_cast<QTabWidget*>(tabWidget()->asWidget());