summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2014-01-17 17:11:22 +0100
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2014-01-17 17:11:22 +0100
commita58f38f1c1ec41d5b886cca6486bf738f71253d1 (patch)
tree5db446db30677f1951b63af028ff00d96ac8b702
parent02a4f74cfefd97d88b0b1354be176a4329336004 (diff)
parent36fcfe36d720fa5dd3f0a997c565fe3898da715d (diff)
Merge remote-tracking branch 'origin/stable' into dev
Conflicts: .qmake.conf Change-Id: I7295292bb7d9b5fc7eba8f099f4592b70de80d11
-rw-r--r--dist/changes-5.2.163
-rw-r--r--examples/bluetooth/bluetooth.pro2
-rw-r--r--src/bluetooth/qbluetoothservicediscoveryagent.cpp21
-rw-r--r--src/bluetooth/qbluetoothservicediscoveryagent_bluez.cpp2
4 files changed, 69 insertions, 19 deletions
diff --git a/dist/changes-5.2.1 b/dist/changes-5.2.1
new file mode 100644
index 00000000..9cb1daa7
--- /dev/null
+++ b/dist/changes-5.2.1
@@ -0,0 +1,63 @@
+Qt 5.2.1 is a bug-fix release. It maintains both forward and backward
+compatibility (source and binary) with Qt 5.2.0.
+
+For more details, refer to the online documentation included in this
+distribution. The documentation is also available online:
+
+ http://qt-project.org/doc/qt-5.2/
+
+Some of the changes listed in this file include issue tracking numbers
+corresponding to tasks in the Qt Bug Tracker:
+
+ http://bugreports.qt-project.org/
+
+Each of these identifiers can be entered in the bug tracker to obtain more
+information about a particular change.
+
+
+****************************************************************************
+* General *
+****************************************************************************
+
+General Improvements
+--------------------
+
+ - Fixed make install rules for all examples
+
+ - Minor code improvements made such as removal of compiler warnings and
+ code cleanups.
+
+Third party components
+----------------------
+
+****************************************************************************
+* Important Behavior Changes *
+****************************************************************************
+
+****************************************************************************
+* Library *
+****************************************************************************
+
+QtBluetooth
+------
+
+ - Fixed cases where device and service discovery classes emitted an error
+ signal but the human readable error string was not adjusted
+
+ - Marked untranslated error strings for translation
+
+ - [QTBUG-32253]
+ * Utilized new QLoggingCategory API for warnings and debug messages
+
+QtNfc
+------
+
+****************************************************************************
+* Platform Specific Changes *
+****************************************************************************
+
+Blackberry
+-------
+
+ - Dangling pointer in QBluetoothServiceDiscoveryAgent fixed
+
diff --git a/examples/bluetooth/bluetooth.pro b/examples/bluetooth/bluetooth.pro
index e3ef7691..549bb7c6 100644
--- a/examples/bluetooth/bluetooth.pro
+++ b/examples/bluetooth/bluetooth.pro
@@ -6,4 +6,4 @@ qtHaveModule(widgets) {
bttennis
}
-SUBDIRS += scanner
+qtHaveModule(quick): SUBDIRS += scanner
diff --git a/src/bluetooth/qbluetoothservicediscoveryagent.cpp b/src/bluetooth/qbluetoothservicediscoveryagent.cpp
index 6f45136a..23600d58 100644
--- a/src/bluetooth/qbluetoothservicediscoveryagent.cpp
+++ b/src/bluetooth/qbluetoothservicediscoveryagent.cpp
@@ -419,23 +419,12 @@ void QBluetoothServiceDiscoveryAgentPrivate::_q_deviceDiscoveryFinished()
void QBluetoothServiceDiscoveryAgentPrivate::_q_deviceDiscovered(const QBluetoothDeviceInfo &info)
{
- if(mode == QBluetoothServiceDiscoveryAgent::FullDiscovery) {
- // look for duplicates, and cached entries
- for(int i = 0; i < discoveredDevices.count(); i++){
- if(discoveredDevices.at(i).address() == info.address()){
- discoveredDevices.removeAt(i);
- }
- }
- discoveredDevices.prepend(info);
- }
- else {
- for(int i = 0; i < discoveredDevices.count(); i++){
- if(discoveredDevices.at(i).address() == info.address()){
- discoveredDevices.removeAt(i);
- }
- }
- discoveredDevices.prepend(info);
+ // look for duplicates, and cached entries
+ for (int i = 0; i < discoveredDevices.count(); i++) {
+ if (discoveredDevices.at(i).address() == info.address())
+ discoveredDevices.removeAt(i);
}
+ discoveredDevices.prepend(info);
}
void QBluetoothServiceDiscoveryAgentPrivate::_q_deviceDiscoveryError(QBluetoothDeviceDiscoveryAgent::Error newError)
diff --git a/src/bluetooth/qbluetoothservicediscoveryagent_bluez.cpp b/src/bluetooth/qbluetoothservicediscoveryagent_bluez.cpp
index 7d7e1bb4..8f969ef6 100644
--- a/src/bluetooth/qbluetoothservicediscoveryagent_bluez.cpp
+++ b/src/bluetooth/qbluetoothservicediscoveryagent_bluez.cpp
@@ -199,8 +199,6 @@ void QBluetoothServiceDiscoveryAgentPrivate::_q_discoveredServices(QDBusPendingC
foreach (const QString &record, reply.value()) {
QXmlStreamReader xml(record);
- qCDebug(QT_BT_BLUEZ) << "Service xml" << record;
-
QBluetoothServiceInfo serviceInfo;
serviceInfo.setDevice(discoveredDevices.at(0));