From 41fb5d9c90f905bfad8f75161397bd179dd2b97c Mon Sep 17 00:00:00 2001 From: Alex Blasche Date: Wed, 27 May 2015 16:02:02 +0200 Subject: Emit missing BluetoothService.detailsChanged signal Device address and service name changes never triggered the signal despite the documentation and Q_PROPERTY definitions requiring it. Change-Id: I5d3d5f827b3e092bce3c2e7a4ce3cf687b251e6e Reviewed-by: Timur Pocheptsov --- src/imports/bluetooth/qdeclarativebluetoothservice.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/imports/bluetooth/qdeclarativebluetoothservice.cpp b/src/imports/bluetooth/qdeclarativebluetoothservice.cpp index 9e966ab8..297dfc82 100644 --- a/src/imports/bluetooth/qdeclarativebluetoothservice.cpp +++ b/src/imports/bluetooth/qdeclarativebluetoothservice.cpp @@ -159,6 +159,7 @@ void QDeclarativeBluetoothService::setDeviceAddress(const QString &newAddress) QBluetoothAddress address(newAddress); QBluetoothDeviceInfo device(address, QString(), QBluetoothDeviceInfo::ComputerDevice); d->m_service->setDevice(device); + emit detailsChanged(); } /*! @@ -176,6 +177,7 @@ QString QDeclarativeBluetoothService::serviceName() const void QDeclarativeBluetoothService::setServiceName(const QString &name) { d->m_service->setServiceName(name); + emit detailsChanged(); } -- cgit v1.2.3