From df34728f4d75150eb38cbc8ffd667e6ef14c6489 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Tue, 15 Mar 2022 20:43:20 +0100 Subject: 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 (cherry picked from commit e516a7bcf898919a908a0d8e0f389aba6059fb55) Reviewed-by: Qt Cherry-pick Bot --- src/gui/kernel/qaction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3