diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-11-26 15:04:33 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-12-03 15:03:26 +0000 |
commit | de7d2eb2adcdee82e48b04945aca87d455e65f9f (patch) | |
tree | eda61c798ead964b18b485741659ab65a3f500b9 /examples/network/fortuneclient/client.h | |
parent | d93a4158e0758541717bb90fce30c2f78b66de34 (diff) |
Polish the fortune server/client examples.
- Remove Qt::WindowContextHelpButtonHint.
- Make the server label interactive (enable copy).
- Introduce new connection syntax.
- Remove unneeded member variables.
- Use constructor initialization where appropriate.
- Adapt the layout to fullscreen platforms by wrapping it
into a QGroupBox.
Change-Id: I6e397ad082f22ba1e99fc5a17440b2be1f9584f6
Reviewed-by: Topi Reiniƶ <topi.reinio@theqtcompany.com>
Diffstat (limited to 'examples/network/fortuneclient/client.h')
-rw-r--r-- | examples/network/fortuneclient/client.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/network/fortuneclient/client.h b/examples/network/fortuneclient/client.h index a93d35e4ed..9b7d6f4dbf 100644 --- a/examples/network/fortuneclient/client.h +++ b/examples/network/fortuneclient/client.h @@ -46,7 +46,6 @@ QT_BEGIN_NAMESPACE class QComboBox; -class QDialogButtonBox; class QLabel; class QLineEdit; class QPushButton; @@ -60,7 +59,7 @@ class Client : public QDialog Q_OBJECT public: - Client(QWidget *parent = 0); + explicit Client(QWidget *parent = Q_NULLPTR); private slots: void requestNewFortune(); @@ -70,14 +69,10 @@ private slots: void sessionOpened(); private: - QLabel *hostLabel; - QLabel *portLabel; QComboBox *hostCombo; QLineEdit *portLineEdit; QLabel *statusLabel; QPushButton *getFortuneButton; - QPushButton *quitButton; - QDialogButtonBox *buttonBox; QTcpSocket *tcpSocket; QString currentFortune; |