From 9de2db2fb8ddac82d4f339b5689417c93f0daa5c Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Tue, 16 Jan 2018 22:50:47 +0200 Subject: Automatically focus on input when opening a dialog --- include/dialogs/CreateRoom.h | 1 + include/dialogs/InviteUsers.h | 1 + include/dialogs/JoinRoom.h | 1 + 3 files changed, 3 insertions(+) (limited to 'include/dialogs') diff --git a/include/dialogs/CreateRoom.h b/include/dialogs/CreateRoom.h index 96095187..46edebdc 100644 --- a/include/dialogs/CreateRoom.h +++ b/include/dialogs/CreateRoom.h @@ -22,6 +22,7 @@ signals: protected: void paintEvent(QPaintEvent *event) override; + void showEvent(QShowEvent *event) override; private: void clearFields(); diff --git a/include/dialogs/InviteUsers.h b/include/dialogs/InviteUsers.h index 236a2558..41e6236a 100644 --- a/include/dialogs/InviteUsers.h +++ b/include/dialogs/InviteUsers.h @@ -19,6 +19,7 @@ public: protected: void paintEvent(QPaintEvent *event) override; + void showEvent(QShowEvent *event) override; signals: void closing(bool isLeaving, QStringList invitees); diff --git a/include/dialogs/JoinRoom.h b/include/dialogs/JoinRoom.h index 0c3f9188..5919f08f 100644 --- a/include/dialogs/JoinRoom.h +++ b/include/dialogs/JoinRoom.h @@ -18,6 +18,7 @@ signals: protected: void paintEvent(QPaintEvent *event) override; + void showEvent(QShowEvent *event) override; private: FlatButton *confirmBtn_; -- cgit 1.4.1