qt5base-lts/tests/auto/network/kernel
Marc Mutz 4077fcc615 QHostAddress: fix assignment operators
QHostAddress allowed assignment from a QString, but the respective
constructor is explicit, and rightfully so. So it does not make
sense that the assignment operator is provided, because of the
asymmetry caused between

   QHostAddress addr = funcReturningQString(); // ERROR
   addr              = funcReturningQString(); // OK (until now)

By the same token, since SpecialAddress is implicitly convertible
to QHostAddress, provide the missing assignment operator from that
enum.

Add tests, rewriting the _data() function to use the enum instead
of an int to pass SpecialAddress values, and to test !=, too.

Added setAddress(SpecialAddress), since a) it was missing and
b) to share code between the ctor and the assignment operator.

Change-Id: Ief64c493be13ada8c6968801d9ed083b267fa902
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2016-12-07 13:21:20 +00:00
..
qauthenticator Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00
qdnslookup Add Intel copyright to files that Intel has had non-trivial contribution 2016-01-21 22:44:21 +00:00
qdnslookup_appless Updated license headers 2016-01-21 18:55:18 +00:00
qhostaddress QHostAddress: fix assignment operators 2016-12-07 13:21:20 +00:00
qhostinfo Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00
qnetworkaddressentry Updated license headers 2016-01-21 18:55:18 +00:00
qnetworkdatagram Long live QNetworkDatagram! 2016-06-20 16:11:35 +00:00
qnetworkinterface Merge remote-tracking branch 'origin/5.6' into dev 2016-01-26 16:27:28 +01:00
qnetworkproxy Updated license headers 2016-01-21 18:55:18 +00:00
qnetworkproxyfactory Updated license headers 2016-01-21 18:55:18 +00:00
kernel.pro Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00