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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user