MainWindow controller now receives View parent instead of QWidget

This commit is contained in:
Sergio Martins
2022-04-03 21:23:03 +01:00
parent e9f287e2d7
commit d5700d94e6
5 changed files with 13 additions and 5 deletions

View File

@@ -79,6 +79,7 @@ public:
virtual ~FrameworkWidgetFactory();
virtual View *createDockWidget(Controllers::DockWidget *, Qt::WindowFlags) const = 0;
virtual View *createMainWindow(Controllers::MainWindow *, View *parent, Qt::WindowFlags) const = 0;
///@brief Called internally by the framework to create a Frame class
/// Override to provide your own Frame sub-class. A frame is the
@@ -166,6 +167,7 @@ class DOCKS_EXPORT DefaultWidgetFactory : public FrameworkWidgetFactory
Q_OBJECT
public:
DefaultWidgetFactory() = default;
View *createMainWindow(Controllers::MainWindow *, View *, Qt::WindowFlags) const override;
View *createDockWidget(Controllers::DockWidget *, Qt::WindowFlags) const override;
View *createFrame(Controllers::Frame *, View *parent, FrameOptions options = FrameOption_None) const override;
View *createTitleBar(Controllers::TitleBar *, Controllers::Frame *) const override;