Added Platform::createMainWindow()
Called by tests and layout linter to create a main window. Simplifies creation of the main window, we can now remove one of the ctors. Before we supported both the controller creating the view and vice-versa, while this is convenient it's complex to support, due to order or initializations. Now, you a create a view, and it creates the controller behind the scenes. MainWindow is special in this sense, as it's created by the end user, it's not something internal we want in the ViewFactory.
This commit is contained in:
@@ -54,7 +54,6 @@ class DOCKS_EXPORT ViewFactory_qtquick : public ViewFactory
|
||||
public:
|
||||
ViewFactory_qtquick() = default;
|
||||
~ViewFactory_qtquick() override;
|
||||
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