summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothsocket.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bluetooth/qbluetoothsocket.h')
-rw-r--r--src/bluetooth/qbluetoothsocket.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothsocket.h b/src/bluetooth/qbluetoothsocket.h
index cda64dff..cf76e8b8 100644
--- a/src/bluetooth/qbluetoothsocket.h
+++ b/src/bluetooth/qbluetoothsocket.h
@@ -181,6 +181,13 @@ private Q_SLOTS:
protected:
+#if QT_CONFIG(bluez)
+ //evil hack to enable QBluetoothServer on Bluez to set the desired d_ptr
+ explicit QBluetoothSocket(QBluetoothSocketBasePrivate *d,
+ QBluetoothServiceInfo::Protocol socketType,
+ QObject *parent = nullptr);
+ friend class QBluetoothServerPrivate;
+#endif
#ifndef QT_OSX_BLUETOOTH
QBluetoothSocketBasePrivate *d_ptr;
#else