From 7863f3dc317abe4bf0152679ac6fb62761f89531 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 13 Jul 2021 13:42:19 +0300 Subject: [PATCH] Add NOTIFY to toplevel x/y/width/height properties Currently, when using Toplevel's x, y, width, and height properties in qml, a bunch of warnings will be printed about missing NOTIFY. --- src/toplevel.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/toplevel.h b/src/toplevel.h index e0500abe65..cc86a558a1 100644 --- a/src/toplevel.h +++ b/src/toplevel.h @@ -95,22 +95,22 @@ class KWIN_EXPORT Toplevel : public QObject /** * This property holds the x position of the Toplevel's frame geometry. */ - Q_PROPERTY(int x READ x) + Q_PROPERTY(int x READ x NOTIFY frameGeometryChanged) /** * This property holds the y position of the Toplevel's frame geometry. */ - Q_PROPERTY(int y READ y) + Q_PROPERTY(int y READ y NOTIFY frameGeometryChanged) /** * This property holds the width of the Toplevel's frame geometry. */ - Q_PROPERTY(int width READ width) + Q_PROPERTY(int width READ width NOTIFY frameGeometryChanged) /** * This property holds the height of the Toplevel's frame geometry. */ - Q_PROPERTY(int height READ height) + Q_PROPERTY(int height READ height NOTIFY frameGeometryChanged) Q_PROPERTY(QRect visibleRect READ visibleGeometry) Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity NOTIFY opacityChanged)