qtquick: Allow to use the MDI feature from QML

No need to use low level C++ API anymore
This commit is contained in:
Sergio Martins
2022-06-25 11:45:01 +01:00
parent 74a1520382
commit 95d711ece7
7 changed files with 183 additions and 5 deletions

View File

@@ -12,6 +12,7 @@
#include "QmlTypes.h"
#include "DockWidgetInstantiator.h"
#include "MainWindowInstantiator.h"
#include "MDIDockingAreaInstantiator.h"
#include "LayoutSaverInstantiator.h"
#include <QQmlEngine>
@@ -20,6 +21,7 @@
void KDDockWidgets::registerQmlTypes()
{
qmlRegisterType<MainWindowInstantiator>("com.kdab.dockwidgets", 2, 0, "DockingArea");
qmlRegisterType<MDIDockingAreaInstantiator>("com.kdab.dockwidgets", 2, 0, "MDIDockingArea");
qmlRegisterType<DockWidgetInstantiator>("com.kdab.dockwidgets", 2, 0, "DockWidget");
qmlRegisterType<LayoutSaverInstantiator>("com.kdab.dockwidgets", 2, 0, "LayoutSaver");