Load FloatingWindowFlags from disk with LayoutSaver

If a user specified different flags for a certain FloatingWindow,
they'll be reloaded when restored with LayoutSaver as well.
This commit is contained in:
Sergio Martins
2022-09-16 14:31:48 +01:00
parent 369437cbae
commit 0bef7bc0e9
7 changed files with 19 additions and 13 deletions

View File

@@ -85,9 +85,10 @@ Layouting::Separator *DefaultWidgetFactory::createSeparator(Layouting::Widget *p
return new Layouting::SeparatorWidget(parent);
}
FloatingWindow *DefaultWidgetFactory::createFloatingWindow(MainWindowBase *parent) const
FloatingWindow *DefaultWidgetFactory::createFloatingWindow(MainWindowBase *parent,
FloatingWindowFlags flags) const
{
return new FloatingWindowWidget(QRect(), parent);
return new FloatingWindowWidget(QRect(), parent, flags);
}
FloatingWindow *DefaultWidgetFactory::createFloatingWindow(Frame *frame, MainWindowBase *parent, QRect suggestedGeometry) const
@@ -159,9 +160,9 @@ TitleBar *DefaultWidgetFactory::createTitleBar(FloatingWindow *fw) const
return new SeparatorQuick(parent);
}*/
FloatingWindow *DefaultWidgetFactory::createFloatingWindow(MainWindowBase *parent) const
FloatingWindow *DefaultWidgetFactory::createFloatingWindow(MainWindowBase *parent, FloatingWindowFlags flags) const
{
return new FloatingWindowQuick(parent);
return new FloatingWindowQuick(parent, flags);
}
FloatingWindow *DefaultWidgetFactory::createFloatingWindow(Frame *frame, MainWindowBase *parent, QRect suggestedGeometry) const