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/fortuneserver/server.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/fortuneserver/server.h')
-rw-r--r-- | examples/network/fortuneserver/server.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/network/fortuneserver/server.h b/examples/network/fortuneserver/server.h index d21aa107cf..5b3413295a 100644 --- a/examples/network/fortuneserver/server.h +++ b/examples/network/fortuneserver/server.h @@ -56,7 +56,7 @@ class Server : public QDialog Q_OBJECT public: - Server(QWidget *parent = 0); + explicit Server(QWidget *parent = Q_NULLPTR); private slots: void sessionOpened(); @@ -64,7 +64,6 @@ private slots: private: QLabel *statusLabel; - QPushButton *quitButton; QTcpServer *tcpServer; QStringList fortunes; QNetworkSession *networkSession; |