summaryrefslogtreecommitdiffstats
path: root/src/MainWindow.h
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2021-02-01 18:42:38 -0500
committerJoseph Donofry <joedonofry@gmail.com>2021-02-01 18:42:38 -0500
commit53c653a228f529bab3753ca99dee18a5bf5342a2 (patch)
treead0ba40d27ca5a515f1f33c29c910e5cf7b20dd7 /src/MainWindow.h
parentd59910a8f298b13cc90e436a6f6efa325d863180 (diff)
parent48740065016b7312b7bb1b8e6d944046d47329ad (diff)
Merge remote-tracking branch 'nheko-im/master' into privacy_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 4560ec65..bb219813 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 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);
- static MainWindow *instance() { return instance_; };
+ static MainWindow *instance() { return instance_; }
void saveCurrentWindowSize();
void openLeaveRoomDialog(const QString &room_id);