Add NOTIFY signal to closeable property

QML doesn't like that the overview effect uses the closeable property
yet it has no NOTIFY signal.
This commit is contained in:
Vlad Zahorodnii 2021-09-20 16:36:04 +03:00
parent 095f953847
commit 595c7a7edc

View file

@ -118,10 +118,9 @@ class KWIN_EXPORT AbstractClient : public Toplevel
Q_PROPERTY(bool skipSwitcher READ skipSwitcher WRITE setSkipSwitcher NOTIFY skipSwitcherChanged)
/**
* Whether the window can be closed by the user. The value is evaluated each time the getter is called.
* Because of that no changed signal is provided.
* Whether the window can be closed by the user.
*/
Q_PROPERTY(bool closeable READ isCloseable)
Q_PROPERTY(bool closeable READ isCloseable NOTIFY closeableChanged)
Q_PROPERTY(QIcon icon READ icon NOTIFY iconChanged)