summaryrefslogtreecommitdiffstats
path: root/src/manager-lib/applicationmodel.h
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@qt.io>2023-06-22 02:03:17 +0200
committerRobert Griebl <robert.griebl@qt.io>2023-06-22 15:10:36 +0200
commitaca5b6f7b3212c9f9a7860c12b7f3f4b6539ff42 (patch)
treed37ad19ecc2c4f459ef63541701ed06f27fb6d22 /src/manager-lib/applicationmodel.h
parent691f76d35fea7a9437f3a94bc08e0301db63e511 (diff)
Mark properties exposed to QML as FINAL to prevent shadowing
Change-Id: Iea724f9dce6358b628e0d73e44351a988a6a726d Fixes: QTBUG-114750 Pick-to: 6.6 Reviewed-by: Bernd Weimer <bernd.weimer@qt.io>
Diffstat (limited to 'src/manager-lib/applicationmodel.h')
-rw-r--r--src/manager-lib/applicationmodel.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/manager-lib/applicationmodel.h b/src/manager-lib/applicationmodel.h
index ff0a0de3..64c8f27f 100644
--- a/src/manager-lib/applicationmodel.h
+++ b/src/manager-lib/applicationmodel.h
@@ -22,9 +22,9 @@ class ApplicationModel : public QSortFilterProxyModel
Q_CLASSINFO("AM-QmlType", "QtApplicationManager.SystemUI/ApplicationModel 2.0")
Q_CLASSINFO("AM-QmlPrototype", "QObject")
- Q_PROPERTY(int count READ count NOTIFY countChanged)
- Q_PROPERTY(QJSValue filterFunction READ filterFunction WRITE setFilterFunction NOTIFY filterFunctionChanged)
- Q_PROPERTY(QJSValue sortFunction READ sortFunction WRITE setSortFunction NOTIFY sortFunctionChanged)
+ 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)
public:
ApplicationModel(QObject *parent = nullptr);