summary refs log tree commit diff
path: root/src/MainWindow.h
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-01-16 15:33:33 -0500
committerLoren Burkholder <computersemiexpert@outlook.com>2021-01-29 18:16:50 -0500
commitcd998d1c35d9d65aa04ca64f0f94f34a57db8335 (patch)
tree8ed480d80590712b7eae29d39129fd614e9514e7 /src/MainWindow.h
parentTranslated using Weblate (Estonian) (diff)
downloadnheko-cd998d1c35d9d65aa04ca64f0f94f34a57db8335.tar.xz
Center user info dialog on the screen
Diffstat (limited to 'src/MainWindow.h')
-rw-r--r--src/MainWindow.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/MainWindow.h b/src/MainWindow.h
index 0915a849..707118ed 100644
--- a/src/MainWindow.h
+++ b/src/MainWindow.h
@@ -61,10 +61,15 @@ 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)
+
 public:
         explicit MainWindow(QWidget *parent = nullptr);
 
-        static MainWindow *instance() { return instance_; };
+        static MainWindow *instance() { return instance_; }
         void saveCurrentWindowSize();
 
         void openLeaveRoomDialog(const QString &room_id);