diff options
author | Alex Blasche <alexander.blasche@qt.io> | 2018-09-18 13:53:24 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2018-10-09 07:47:56 +0000 |
commit | fac56a229b45395488f3e41bf178361c72b3ee1e (patch) | |
tree | ae99681642099d2bd3cb42fc66804f61c6f65aab /tests/auto | |
parent | 7ef3dfbd4354367ad78040010aa851943b7b9e75 (diff) |
Deprecate QBluetoothDeviceInfo::DataCompleteness with Qt 6 in mind
The patch deprecates the mentioned enum and all users of it. In addition,
QList usage is replaced by QVector (which is a design pattern in Qt).
Task-number: QTBUG-62425
Change-Id: I63e8dceb03ed231d0d06709896a1aad2b6bb31a3
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp b/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp index fd2ed46f..6636f0cd 100644 --- a/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp +++ b/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp @@ -452,6 +452,11 @@ void tst_QBluetoothDeviceInfo::tst_serviceUuids() servicesList.append(QBluetoothUuid::Rfcomm); QVERIFY(servicesList.count() > 0); + deviceInfo.setServiceUuids(servicesList.toVector()); + QVERIFY(deviceInfo.serviceUuids().count() > 0); + deviceInfo.setServiceUuids(QVector<QBluetoothUuid>()); + QCOMPARE(deviceInfo.serviceUuids().count(), 0); + deviceInfo.setServiceUuids(servicesList, QBluetoothDeviceInfo::DataComplete); QVERIFY(deviceInfo.serviceUuids().count() > 0); QVERIFY(deviceInfo != copyInfo); |