From d8ebc0b3dcdc988cb8c5ee495072272a1bdb28ca Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Fri, 29 Jan 2021 17:34:56 -0500 Subject: [PATCH] Fix warning about non-NOTIFYable property --- src/MainWindow.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MainWindow.h b/src/MainWindow.h index 707118ed..4c365dca 100644 --- a/src/MainWindow.h +++ b/src/MainWindow.h @@ -61,10 +61,10 @@ class MainWindow : public QMainWindow { Q_OBJECT - Q_PROPERTY(int x READ x) - Q_PROPERTY(int y READ y) - Q_PROPERTY(int width READ width) - Q_PROPERTY(int height READ height) + Q_PROPERTY(int x READ x CONSTANT) + Q_PROPERTY(int y READ y CONSTANT) + Q_PROPERTY(int width READ width CONSTANT) + Q_PROPERTY(int height READ height CONSTANT) public: explicit MainWindow(QWidget *parent = nullptr);