summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-07 19:25:06 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-07 19:25:06 +0300
commitc7c3ee19ee66ab5f3ad57c16f546e35674093c0d (patch)
treebfe5f7129977344e70f9f52d2cab9ec7f744cbc8 /include
parentUse const refs for the deserialized data (diff)
downloadnheko-c7c3ee19ee66ab5f3ad57c16f546e35674093c0d.tar.xz
Use QLabel to display registration errors
Diffstat (limited to 'include')
-rw-r--r--include/RegisterPage.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/RegisterPage.h b/include/RegisterPage.h

index f1c3848e..421cbd87 100644 --- a/include/RegisterPage.h +++ b/include/RegisterPage.h
@@ -43,6 +43,10 @@ signals: // responsible for the actual registering on the remote Matrix server. void registerUser(const QString &username, const QString &password, const QString &server); +public slots: + // Display registration specific errors to the user. + void registerError(const QString &msg); + private slots: void onBackButtonClicked(); void onRegisterButtonClicked(); @@ -55,6 +59,7 @@ private: QHBoxLayout *button_layout_; QLabel *logo_; + QLabel *error_label_; FlatButton *back_button_; RaisedButton *register_button_;