Commit Graph

15 Commits

Author SHA1 Message Date
Timur Pocheptsov f162d79280 btscanner sample - use permissions API
Check and request a permission to use Bluetooth.

Task-number: QTBUG-109964
Change-Id: I446f98fc15a2bd7bad97cff4a5937a43cc01e6dc
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2023-03-03 09:19:36 +01:00
Jani Korteniemi b3fafb2d5b Remove empty black space from Android
Removed black space from example by
puting example in fullscreen if using Android.

Task-number: QTBUG-106408
Change-Id: I51204de38b5d7528fcc88e1c9944b45c891926d4
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2023-01-09 13:45:23 +02:00
Lucie Gérard 664d2a1cf0 Use SPDX license identifiers
Replace the current license disclaimer in files by
a SPDX-License-Identifier.
License files are organized under LICENSES directory.

Pick-to: 6.4
Task-number: QTBUG-67283
Change-Id: Ifc22d8ae24532e9a1093ca613ed6590a1992bc39
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
2022-06-10 15:13:12 +02:00
Oliver Wolff 215b7bea76 btscanner example: Add option to stop a running scan
Change-Id: Id82f6c903938e289559a79b4a2383ad20944c61a
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2022-01-26 13:07:46 +01:00
Friedemann Kleint cd540c71ba Polish the btscanner example
- Use Qt 5 connection syntax
- Use a QDialogButtonBox instead of a single button in the service dialog
- Forward-declare the UI classes
- Streamline code

Pick-to: 6.2
Change-Id: I30db78043a8e3a62ea10223252a59b8415296e55
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
2021-10-19 14:39:07 +02:00
Alex Blasche 37741c21d4 Remove QBluetoothDeviceDiscoveryAgent::inquiryType property
This removes the property itself and all related public API interfaces
(incl. InquiryType enum, property getter and setter).

[ChangeLog][QtBluetooth][QBluetoothDeviceDiscoveryAgent] Removed inquiryType property
and related API elements. The property was never implemented except for the publicly
facing API.

Task-number: QTBUG-75344
Change-Id: I775f74615294646fa8f7ee9801df2f6c6919e56d
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
2020-05-14 14:53:31 +02:00
Friedemann Kleint ca0594270c btscanner example: Fix deprecation warning
device.cpp:112:49: warning: ‘void QListWidgetItem::setTextColor(const QColor&)’ is deprecated: Use QListWidgetItem::setForeground() instead [-Wdeprecated-declarations]
device.cpp:114:49: warning: ‘void QListWidgetItem::setTextColor(const QColor&)’ is deprecated: Use QListWidgetItem::setForeground() instead [-Wdeprecated-declarations]
device.cpp:221:49: warning: ‘void QListWidgetItem::setTextColor(const QColor&)’ is deprecated: Use QListWidgetItem::setForeground() instead [-Wdeprecated-declarations]
device.cpp:226:47: warning: ‘void QListWidgetItem::setTextColor(const QColor&)’ is deprecated: Use QListWidgetItem::setForeground() instead [-Wdeprecated-declarations]

Change-Id: I673b786d2d7b76ca4a51ba8eaad231592f4ad4fd
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
2019-02-11 11:38:27 +00:00
Kai Koehne b171cddac0 Fix outdated BSD license header
Change-Id: I28f5936913a6127806325df34af4bf71a142e72e
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
2017-10-17 11:17:54 +00:00
Christian Kandeler caef6445a9 Bluetooth: Fix crash in btscanner example.
Task-number: QTBUG-47773
Change-Id: Ie76345ded1292c6c62eae5f3beddd48cd9e0ae22
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
2015-09-23 11:38:05 +00:00
Jani Heikkinen 7354c6d393 Update copyright headers
Qt copyrights are now in The Qt Company, so we could update the source
code headers accordingly. In the same go we should also fix the links to
point to qt.io.

Change-Id: I3822a6484e8f7a420330de1cb1aeb0c3d1cf41b7
Reviewed-by: Sergio Ahumada <sahumada@texla.cl>
2015-02-16 11:48:42 +00:00
Sergio Ahumada 5ac9aebf83 Prefer to use normalised signal/slot signatures
Change-Id: Idd8127e577be7381e170dab296d8f0564c478020
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
2014-03-03 09:50:50 +01:00
Nedim Hadzic ecb93e0f63 Make Bluetooth adapter choosable for device and service search
In case there are more Bluetooth adapter, device and service search
might give different results.

Addition to Change-Id: Ideddb39460985c18547baec986b15e43946c85de - added option
for setting the device adapter for service search. QBluetoothLocalDevice was used
in both classes (device and service search) for passing an argument for setting
adapter. The reason for this to keep the same approach, because in
QBluetoothServiceDiscoveryAgent class there is already a constructor
with QBluetoothAddress argument.

Auto tests and examples updated.

Change-Id: Ib5d7ff23e4846d9d42dae68d8d424031748811e5
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
2013-09-05 10:23:47 +02:00
Alex Blasche b0cca9bdd0 Remove code related to dead or currently unsupported platforms
- Removes the Meego/Maemo backend for QtNfc
- Remove Simulator, WinCE and S60 remnants from the examples

If any of these platforms becomes relevant they can be added back
of course.

Change-Id: I84712ea07f01794b622560ce77e08cee347406e3
Reviewed-by: Michael Zanetti <michael.zanetti@canonical.com>
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Alex <alexander.blasche@digia.com>
2013-07-25 14:30:14 +02:00
Alex Blasche 8dad4698d9 Update Copyright headers
- Update Digia's copyright year
- Add copyright to files without it
- Convert old BSD to new LGPL license for auto test code

Change-Id: I47f5c871c436f9c2731b235026434448719cc671
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
2013-06-25 10:08:54 +02:00
Jerome Pasion d8a179128c Qt Bluetooth: Modularized documentation
-moved documentation to src/bluetooth/doc
-added a qdocconf file for Qt Bluetooth
-fixed relative paths for snippets
-moved examples to examples/bluetooth

Change-Id: Id41bac50dca628400568d191f1c3ccfbaac790a1
Reviewed-by: Alex <ablasche@gmail.com>
2012-09-27 14:43:52 +02:00