Split most widgets into a Controller and a View
Controllers don't have any GUI and don't depend on the frontend technology. Views are implemented in a specific GUI tech (QtWidgets, QtQuick, etc). For now only QtWidgets work. There's still a lot to decouple. This will make it easier to introduce non-Qt backends.
This commit is contained in:
@@ -23,5 +23,5 @@ class CustomWidgetFactory : public KDDockWidgets::DefaultWidgetFactory
|
||||
public:
|
||||
KDDockWidgets::TitleBar *createTitleBar(KDDockWidgets::Frame *frame) const override;
|
||||
KDDockWidgets::TitleBar *createTitleBar(KDDockWidgets::FloatingWindow *fw) const override;
|
||||
Layouting::Separator *createSeparator(Layouting::Widget *parent = nullptr) const override;
|
||||
KDDockWidgets::View *createSeparator(KDDockWidgets::Controllers::Separator *, KDDockWidgets::View *parent = nullptr) const override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user