Simplify ViewFactory by making it receive View parents instead of Controllers
Users don't need to worry about such details, like casting to QWidget.
This commit is contained in:
@@ -22,9 +22,8 @@
|
||||
using namespace KDDockWidgets;
|
||||
using namespace KDDockWidgets::Views;
|
||||
|
||||
Stack_qtquick::Stack_qtquick(Controllers::Stack *controller,
|
||||
Controllers::Frame *parent)
|
||||
: View_qtquick(controller, Type::Stack, Views::asQQuickItem(parent))
|
||||
Stack_qtquick::Stack_qtquick(Controllers::Stack *controller, QQuickItem *parent)
|
||||
: View_qtquick(controller, Type::Stack, parent)
|
||||
, m_dockWidgetModel(new DockWidgetModel(this))
|
||||
, m_stack(controller)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user