diff options
author | Robert Griebl <robert.griebl@qt.io> | 2023-10-31 16:26:40 +0100 |
---|---|---|
committer | Robert Griebl <robert.griebl@qt.io> | 2023-11-08 16:19:40 +0100 |
commit | ee0028f65e78dc4ae43abe3d07902e9cd9662495 (patch) | |
tree | 2a07b781de679ec6e8de79e0b4e641bafd729728 /src/manager-lib/applicationmodel.h | |
parent | fef2d9a8666e333b4e01518936de12b326d25478 (diff) |
Switch to declarative registration
After reworking all the sys-ui/app shared classes, we can now finally
switch to declarative registration.
As each QML namespace can only have one qt_internal_add_qml_module
assigned, we need a dedicated lib/module for each of our namespaces.
Due to this problem and in order to keep the code clean, all
declarative registrations are kept out of the actual classes (as these
are spread over multiple static libs). Instead they are all done in
one place (src/qml/../) using the "foreign" syntax.
The internal AmTest class (only used for the QML auto tests) had to be
moved to a new QtApplicationManager.Test namespace, because adding an
imperative registration to a declaratively registered namespace hides
all the existing classes.
Change-Id: I2e5b782da33a470a6d267cf45b42866fe6a9c14e
Task-number: QTBUG-103266
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
Diffstat (limited to 'src/manager-lib/applicationmodel.h')
-rw-r--r-- | src/manager-lib/applicationmodel.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/manager-lib/applicationmodel.h b/src/manager-lib/applicationmodel.h index 8d8fc093..5576e5cb 100644 --- a/src/manager-lib/applicationmodel.h +++ b/src/manager-lib/applicationmodel.h @@ -19,9 +19,6 @@ class Application; class ApplicationModel : public QSortFilterProxyModel { Q_OBJECT - Q_CLASSINFO("AM-QmlType", "QtApplicationManager.SystemUI/ApplicationModel 2.0") - Q_CLASSINFO("AM-QmlPrototype", "QObject") - Q_PROPERTY(int count READ count NOTIFY countChanged FINAL) Q_PROPERTY(QJSValue filterFunction READ filterFunction WRITE setFilterFunction NOTIFY filterFunctionChanged FINAL) Q_PROPERTY(QJSValue sortFunction READ sortFunction WRITE setSortFunction NOTIFY sortFunctionChanged FINAL) |