refactor: Decouple moveToSideBar from overlaying
overlaying just shows/hides the overlay, and not requires the dock widget was added to the sidebar before
This commit is contained in:
@@ -489,10 +489,12 @@ void DockWidgetBase::setAffinities(const QStringList &affinityNames)
|
||||
d->affinities = affinities;
|
||||
}
|
||||
|
||||
void DockWidgetBase::minimizeToSideBar()
|
||||
void DockWidgetBase::moveToSideBar()
|
||||
{
|
||||
if (MainWindowBase *m = mainWindow())
|
||||
if (MainWindowBase *m = mainWindow()) {
|
||||
m->moveToSideBar(this);
|
||||
m->overlayOnSideBar(this);
|
||||
}
|
||||
}
|
||||
|
||||
FloatingWindow *DockWidgetBase::morphIntoFloatingWindow()
|
||||
|
||||
Reference in New Issue
Block a user