qtquick: Don't overload Q_INVOKABLES

Apparently QML doesn't support it very well.

Fixes #291
This commit is contained in:
Sergio Martins
2022-06-19 20:11:33 +01:00
parent 9072555814
commit da70b1baed
7 changed files with 67 additions and 57 deletions

View File

@@ -109,6 +109,13 @@ ApplicationWindow {
color: "black"
}
}
KDDW.DockWidget {
id: dock7
uniqueName: "dock7"
Rectangle {
color: "green"
}
}
Component.onCompleted: {
// Add dock4 to the Bottom location
@@ -122,6 +129,10 @@ ApplicationWindow {
// See MainWindowInstantiator_p.h for the API
addDockWidget(dock6, KDDW.KDDockWidgets.Location_OnLeft, null,
Qt.size(500, 100), KDDW.KDDockWidgets.StartHidden);
// dock7 will be tabbed with dock7:
dock5.addDockWidgetAsTab(dock7);
}
}