Add Frame view interface

This commit is contained in:
Sergio Martins
2022-04-02 23:57:48 +01:00
parent 2f0cbf83e9
commit 3cdd33f42f
8 changed files with 86 additions and 101 deletions

View File

@@ -58,10 +58,10 @@ FrameworkWidgetFactory::~FrameworkWidgetFactory()
#ifdef KDDOCKWIDGETS_QTWIDGETS
View *DefaultWidgetFactory::createFrame(Controllers::Frame *controller, View *parent = nullptr,
FrameOptions options) const
FrameOptions) const
{
Q_UNUSED(options); // TODO
return new Views::Frame_qtwidgets(controller, parent->asQWidget());
// TODOv2: Remove options
return new Views::Frame_qtwidgets(controller, parent ? parent->asQWidget() : nullptr);
}
View *DefaultWidgetFactory::createTitleBar(Controllers::TitleBar *titleBar, Controllers::Frame *frame) const