diff --git a/ui/StatusQ/src/StatusQ/Core/Utils/QObject.qml b/ui/StatusQ/src/StatusQ/Core/Utils/QObject.qml new file mode 100644 index 0000000000..884626ee4e --- /dev/null +++ b/ui/StatusQ/src/StatusQ/Core/Utils/QObject.qml @@ -0,0 +1,7 @@ +import QtQml 2.15 + +// Simple utility allowing to declare children within QtObject without having +// to assigne them to properties, like `QtObject { ListModel {} }` +QtObject { + default property list children +} diff --git a/ui/StatusQ/src/StatusQ/Core/Utils/qmldir b/ui/StatusQ/src/StatusQ/Core/Utils/qmldir index a9e8be9eb3..0a5d269245 100644 --- a/ui/StatusQ/src/StatusQ/Core/Utils/qmldir +++ b/ui/StatusQ/src/StatusQ/Core/Utils/qmldir @@ -8,6 +8,7 @@ JSONListModel 0.1 JSONListModel.qml ModelChangeGuard 0.1 ModelChangeGuard.qml ModelChangeTracker 0.1 ModelChangeTracker.qml ModelsComparator 0.1 ModelsComparator.qml +QObject 0.1 QObject.qml StackViewStates 0.1 StackViewStates.qml StatesStack 0.1 StatesStack.qml Subscription 0.1 Subscription.qml