diff options
author | Manuel Schneider | 2014-05-06 14:37:44 +0200 |
---|---|---|
committer | Manuel Schneider | 2014-05-06 15:16:20 +0200 |
commit | 35c3facc81cf10a2070cc5091e4e447ecc7416e3 (patch) | |
tree | 0a29051637a37d419407fa266cb1d8234666f9d6 /src/client/connectwindow/connectwindow.h | |
parent | Reduces button block time (diff) | |
download | pvs2-35c3facc81cf10a2070cc5091e4e447ecc7416e3.tar.gz pvs2-35c3facc81cf10a2070cc5091e4e447ecc7416e3.tar.xz pvs2-35c3facc81cf10a2070cc5091e4e447ecc7416e3.zip |
Changes the approach of Qt Gui initialization to the member pointer approach. This means multiple inheritance is avoided and the form is now a member pointer of the class. Immlicitely renamed some ui elements for clearification. Again changed unnecessary use of QDialog to QWidget.
Diffstat (limited to 'src/client/connectwindow/connectwindow.h')
-rw-r--r-- | src/client/connectwindow/connectwindow.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/client/connectwindow/connectwindow.h b/src/client/connectwindow/connectwindow.h index 2bc2f86..191121c 100644 --- a/src/client/connectwindow/connectwindow.h +++ b/src/client/connectwindow/connectwindow.h @@ -19,13 +19,14 @@ #include <QtGui> #include <QUdpSocket> #include <QSslSocket> -#include "ui_connect.h" - #include "../../shared/networkmessage.h" +namespace Ui{ +class ConnectWindow; +} class ServerConnection; -class ConnectWindow : public QDialog, private Ui_Dialog +class ConnectWindow : public QWidget { Q_OBJECT @@ -46,6 +47,8 @@ public: }; private: + Ui::ConnectWindow *_ui; + bool _connected; int _timerDiscover, _timerHide; ServerConnection *_connection; @@ -62,7 +65,7 @@ private: void updateState(); public: - ConnectWindow(QWidget *parent = NULL); + explicit ConnectWindow(QWidget *parent = NULL); virtual ~ConnectWindow(); void setConnected(const bool connected); |