summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp2
-rw-r--r--src/bluetooth/qbluetoothlocaldevice_bluez.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp b/src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp
index a84a9b82..983228c8 100644
--- a/src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp
+++ b/src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp
@@ -343,7 +343,7 @@ void QBluetoothDeviceDiscoveryAgentPrivate::deviceFoundBluez5(const QString& dev
if (btAddress.isNull()) // no point reporting an empty address
return;
- const QString btName = device.name();
+ const QString btName = device.alias();
quint32 btClass = device.classProperty();
qCDebug(QT_BT_BLUEZ) << "Discovered: " << btAddress.toString() << btName
diff --git a/src/bluetooth/qbluetoothlocaldevice_bluez.cpp b/src/bluetooth/qbluetoothlocaldevice_bluez.cpp
index 665f9096..98894dff 100644
--- a/src/bluetooth/qbluetoothlocaldevice_bluez.cpp
+++ b/src/bluetooth/qbluetoothlocaldevice_bluez.cpp
@@ -89,7 +89,7 @@ QString QBluetoothLocalDevice::name() const
return reply.value().value(QStringLiteral("Name")).toString();
} else if (d_ptr->adapterBluez5) {
- return d_ptr->adapterBluez5->name();
+ return d_ptr->adapterBluez5->alias();
}
return QString();