Rename "addWidget" to "addTab"

This commit is contained in:
Sergio Martins
2022-07-31 23:03:16 +01:00
parent 45ad75fcd4
commit e4b2d37f96
8 changed files with 26 additions and 26 deletions

View File

@@ -123,7 +123,7 @@ void DockWidget::addDockWidgetAsTab(DockWidget *other, InitialOption option)
}
other->setParentView(nullptr);
group->addWidget(other, option);
group->addTab(other, option);
}
void DockWidget::addDockWidgetToContainingWindow(DockWidget *other,
@@ -559,7 +559,7 @@ Controllers::FloatingWindow *DockWidget::Private::morphIntoFloatingWindow()
}
auto group = new Controllers::Group();
group->addWidget(q);
group->addTab(q);
geo.setSize(geo.size().boundedTo(group->view()->maxSizeHint()));
geo.setSize(geo.size().expandedTo(group->view()->minSize()));
Controllers::FloatingWindow::ensureRectIsOnScreen(geo);