From 293af3174c5615978d842603f9a8a4a9b568236c Mon Sep 17 00:00:00 2001 From: Oleg Shparber Date: Mon, 28 Apr 2014 02:09:06 -0700 Subject: Check for QT_NO_DEBUG_STREAM for QBluetoothUuid QDebug helper [ChangeLog][QtBluetooth] QDebug helper for QBluetoothUuid became aware of QT_NO_DEBUG_STREAM define. Change-Id: I20941c32560bfc6beaa8f4f465799af987d0b0cd Reviewed-by: Alex Blasche --- src/bluetooth/qbluetoothuuid.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/bluetooth/qbluetoothuuid.h') diff --git a/src/bluetooth/qbluetoothuuid.h b/src/bluetooth/qbluetoothuuid.h index 014b975a..f33d8c13 100644 --- a/src/bluetooth/qbluetoothuuid.h +++ b/src/bluetooth/qbluetoothuuid.h @@ -174,11 +174,14 @@ public: quint128 toUInt128() const; }; +#ifndef QT_NO_DEBUG_STREAM +/// TODO: Move implementation to .cpp, uninline and add Q_BLUETOOTH_EXPORT for Qt 6 inline QDebug operator<<(QDebug debug, const QBluetoothUuid &uuid) { debug << uuid.toString(); return debug; } +#endif QT_END_NAMESPACE -- cgit v1.2.3