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>
bb10
Kai Uwe Broulik 2022-03-15 20:43:20 +01:00 committed by Volker Hilsheimer
parent 58a14d9433
commit e516a7bcf8
1 changed files with 1 additions and 1 deletions

View File

@ -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