diff options
author | Kai Uwe Broulik <kde@privat.broulik.de> | 2022-03-15 20:43:20 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-03-16 19:04:03 +0000 |
commit | df34728f4d75150eb38cbc8ffd667e6ef14c6489 (patch) | |
tree | c04b99b8d4a3055d89d1d99a44a0e3fd23aca07a | |
parent | 2a5f32779806d1de8075052c1e1e3cb0ffe3ef62 (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.
Change-Id: Ia91ae5d00d722bdb2fc1f89671c3e7faab4b129f
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit e516a7bcf898919a908a0d8e0f389aba6059fb55)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/gui/kernel/qaction.h | 2 |
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 |