summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorKai Uwe Broulik <kde@privat.broulik.de>2022-03-15 20:43:20 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2022-03-16 17:28:27 +0000
commite516a7bcf898919a908a0d8e0f389aba6059fb55 (patch)
treecfbc3b2214391a91b6c77c27e2029ad24c9c9aff /src/gui/kernel
parent58a14d943353f02bfbee0a65f5e31c40358c8c53 (diff)
QAction: Add NOTIFY changed declaration to priority property
It already emits the signal and was merely missing the declaration. This fixes warnings about depending on non-NOTIFYable properties when binding to the priority property from QML. Pick-to: 6.3 6.2 Change-Id: Ia91ae5d00d722bdb2fc1f89671c3e7faab4b129f Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qaction.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qaction.h b/src/gui/kernel/qaction.h
index fc8b4a104f..34d2c2fb14 100644
--- a/src/gui/kernel/qaction.h
+++ b/src/gui/kernel/qaction.h
@@ -89,7 +89,7 @@ class Q_GUI_EXPORT QAction : public QObject
NOTIFY changed)
Q_PROPERTY(bool shortcutVisibleInContextMenu READ isShortcutVisibleInContextMenu
WRITE setShortcutVisibleInContextMenu NOTIFY changed)
- Q_PROPERTY(Priority priority READ priority WRITE setPriority)
+ Q_PROPERTY(Priority priority READ priority WRITE setPriority NOTIFY changed)
public:
// note this is copied into qplatformmenu.h, which must stay in sync