diff options
author | Shane Kearns <ext-shane.2.kearns@nokia.com> | 2012-02-15 20:12:15 +0000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-17 11:44:29 +0100 |
commit | 304fc533bddde005ce786c4ab2da71678f89e379 (patch) | |
tree | 4b692f5e2d79672d0b58ee02a4ef277a64b18519 /examples/network/fortuneclient/client.h | |
parent | f89d02e0039562fadf8d8708bd71cff42a46b7a7 (diff) |
Fortune client example - list all IP addresses
The first IP address on the machine might not be a usable one.
Changed the QLineEdit to a QComboBox, and populated it with
all IP addresses of the machine, along with the machine names
if they are configured.
Task-number: QTBUG-13121
Change-Id: I7c443f5ce6efb0d0b525c5abad1671d3dcbba33c
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'examples/network/fortuneclient/client.h')
-rw-r--r-- | examples/network/fortuneclient/client.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/network/fortuneclient/client.h b/examples/network/fortuneclient/client.h index 6e65e6e021..dc65251476 100644 --- a/examples/network/fortuneclient/client.h +++ b/examples/network/fortuneclient/client.h @@ -45,6 +45,7 @@ #include <QTcpSocket> QT_BEGIN_NAMESPACE +class QComboBox; class QDialogButtonBox; class QLabel; class QLineEdit; @@ -71,7 +72,7 @@ private slots: private: QLabel *hostLabel; QLabel *portLabel; - QLineEdit *hostLineEdit; + QComboBox *hostCombo; QLineEdit *portLineEdit; QLabel *statusLabel; QPushButton *getFortuneButton; |