summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2016-07-20 13:16:52 +0200
committerAlex Blasche <alexander.blasche@theqtcompany.com>2016-07-25 05:52:15 +0000
commit71a0d199a29001cc31bfde15aabcc53cf88aae1e (patch)
tree73e6cb25a509102474cd8126fa559a0467e9a6b7 /src
parent09d30048e6cf8a86507bda1872fd7d9f653ec9ed (diff)
Document the meaning of QBluetoothDeviceInfo::minorDeviceClass()
A naming inconsistency was discovered and a related Qt 6 TODO was added. Change-Id: I171f8480009a3fc8c3ddc39cc2da03cf4a6eb9db Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/bluetooth/qbluetoothdeviceinfo.cpp7
-rw-r--r--src/bluetooth/qbluetoothdeviceinfo.h2
2 files changed, 7 insertions, 2 deletions
diff --git a/src/bluetooth/qbluetoothdeviceinfo.cpp b/src/bluetooth/qbluetoothdeviceinfo.cpp
index 7d5d8f0c..f6002a30 100644
--- a/src/bluetooth/qbluetoothdeviceinfo.cpp
+++ b/src/bluetooth/qbluetoothdeviceinfo.cpp
@@ -498,7 +498,12 @@ QBluetoothDeviceInfo::MajorDeviceClass QBluetoothDeviceInfo::majorDeviceClass()
}
/*!
- Returns the minor device class of the device.
+ Returns the minor device class of the device. The actual information
+ is context dependent on the value of \l majorDeviceClass().
+
+ \sa MinorAudioVideoClass, MinorComputerClass, MinorHealthClass, MinorImagingClass,
+ MinorMiscellaneousClass, MinorNetworkClass, MinorPeripheralClass, MinorPhoneClass,
+ MinorToyClass, MinorWearableClass
*/
quint8 QBluetoothDeviceInfo::minorDeviceClass() const
{
diff --git a/src/bluetooth/qbluetoothdeviceinfo.h b/src/bluetooth/qbluetoothdeviceinfo.h
index a39b593f..b0f0a592 100644
--- a/src/bluetooth/qbluetoothdeviceinfo.h
+++ b/src/bluetooth/qbluetoothdeviceinfo.h
@@ -52,7 +52,7 @@ public:
MiscellaneousDevice = 0,
ComputerDevice = 1,
PhoneDevice = 2,
- LANAccessDevice = 3,
+ LANAccessDevice = 3, // TODO Qt 6 rename to NetworkDevice -> inconsistency with MinorNetworkClass
AudioVideoDevice = 4,
PeripheralDevice = 5,
ImagingDevice = 6,