summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/btchat/chatclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bluetooth/btchat/chatclient.cpp')
-rw-r--r--examples/bluetooth/btchat/chatclient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/bluetooth/btchat/chatclient.cpp b/examples/bluetooth/btchat/chatclient.cpp
index 30e36b06..b6ba7c52 100644
--- a/examples/bluetooth/btchat/chatclient.cpp
+++ b/examples/bluetooth/btchat/chatclient.cpp
@@ -59,7 +59,7 @@ void ChatClient::startClient(const QBluetoothServiceInfo &remoteService)
return;
// Connect to service
- socket = new QBluetoothSocket(QBluetoothSocket::RfcommSocket);
+ socket = new QBluetoothSocket(QBluetoothServiceInfo::RfcommProtocol);
qDebug() << "Create socket";
socket->connectToService(remoteService);
qDebug() << "ConnecttoService done";