diff options
-rw-r--r-- | src/bluetooth/qbluetoothuuid.cpp | 5 | ||||
-rw-r--r-- | src/bluetooth/qbluetoothuuid.h | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/bluetooth/qbluetoothuuid.cpp b/src/bluetooth/qbluetoothuuid.cpp index 5338c978..8f54833b 100644 --- a/src/bluetooth/qbluetoothuuid.cpp +++ b/src/bluetooth/qbluetoothuuid.cpp @@ -525,10 +525,11 @@ Q_CONSTRUCTOR_FUNCTION(registerQBluetoothUuid) */ /*! - \fn QBluetoothUuid::QBluetoothUuid(QUuid::Id128Bytes uuid) + \fn QBluetoothUuid::QBluetoothUuid(QUuid::Id128Bytes uuid, QSysInfo::Endian order) + \since 6.6 Constructs a new Bluetooth UUID from the 128 bit \a uuid represented - by \l QUuid::Id128Bytes struct. + by the integral \a uuid parameter and respecting the byte order \a order. */ /*! diff --git a/src/bluetooth/qbluetoothuuid.h b/src/bluetooth/qbluetoothuuid.h index d599c573..30641d35 100644 --- a/src/bluetooth/qbluetoothuuid.h +++ b/src/bluetooth/qbluetoothuuid.h @@ -352,8 +352,8 @@ public: : QUuid(uuid, 0x0, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb) {}; explicit QBluetoothUuid(quint128 uuid); - explicit QBluetoothUuid(QUuid::Id128Bytes uuid) noexcept - : QUuid(uuid) {}; + explicit QBluetoothUuid(Id128Bytes uuid, QSysInfo::Endian order = QSysInfo::BigEndian) noexcept + : QUuid(uuid, order) {}; explicit QBluetoothUuid(const QString &uuid); QBluetoothUuid(const QBluetoothUuid &uuid) = default; QBluetoothUuid(const QUuid &uuid); |