MainWindow controller now receives View parent instead of QWidget
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user