Commit Graph

3762 Commits

Author SHA1 Message Date
Qt Submodule Update Bot d7b0174ee8 Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: I397b390dd313ec7b4ae26bf5b0fbc32fceb75baf
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-12-02 09:36:27 +00:00
Qt Submodule Update Bot c384777dd0 Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: Ic12fce54f4d6c91244fe2a49cb0a75235db2c57e
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-12-01 11:37:45 +00:00
Volker Hilsheimer 2cc77bcc4a Don't specify a conflicting type for setField calls
On 32bit builds, jlong is `long long`, so passing in a long and claiming
that it's a jlong is wrong. This causes a build failure after the
addition of optional exception handling for QJniObject calls in
qtbase:d045e2d2b604152450a45846fc87cb53d89bf50a.

Fix that by not specifying the field type explicitly, and instead
consistently cast to jlong (using reinterpret_cast if we have a pointer,
otherwise construct the jlong in place).

This is not a problem for calls that specify e.g. jboolean and then pass
a bool, as those are the same types on all platforms.

Fixes: QTBUG-142334
Change-Id: Icbcab1b20157b2e9d002d2de8efd9fe4acef291d
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2025-12-01 12:37:36 +01:00
Qt Submodule Update Bot 064d855c00 Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: I85aec7c852683e7f6e3304101a901117c7fb8e1d
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-11-28 10:27:22 +00:00
Qt Submodule Update Bot fc57a7cca4 Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: I0260d520e0c32d0679d3f0ee87beb6b07465dd03
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-11-26 11:02:14 +00:00
Ahmad Samir da55e6f878 Mark the whole repo with QT_NO_URL_CAST_FROM_STRING
Drive-by, set QT_EXTRA_INTERNAL_TARGET_DEFINES in one command, more
readable

Change-Id: I6f430d8461493ba34484a6de1889aa95b5d3edf0
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
2025-11-25 08:57:20 +00:00
Qt Submodule Update Bot 0d0769c802 Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: Ide434970e5f372481261d3982497ff0c5f39cf6a
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-11-25 05:37:10 +00:00
Qt Submodule Update Bot 4e09cf7780 Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: Ifd320a2eed0ebca685b96f4996e8798687f27484
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-11-20 18:47:04 +00:00
Jerome Pasion 71f8eb6613 Doc: Fix QDoc warnings for internal classes and functions
-Internal classes should have internal class documentation.

Task-number: QTBUG-141665
Change-Id: If6837530f96c2c729726cc7d987bf5c394da609c
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
2025-11-20 15:34:25 +00:00
Qt Submodule Update Bot fff36c283f Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: I8c5cc3ac94e22d2fbefa85c05299436064bf7ce1
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-11-19 11:33:39 +00:00
Qt Submodule Update Bot f5d2665d34 Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: Ifa5f420325d68da186fe5e9287a15db1cde9699b
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-11-18 16:27:25 +00:00
Qt Submodule Update Bot d061e46b5d Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: Id24aec74ccdaa4eeb7f41446dcf92df4b970b238
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-11-15 00:33:34 +00:00
Qt Submodule Update Bot ea4378a7d4 Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: I5136448b411d8805ef4262f91c892950c9689fb6
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-11-14 00:59:12 +00:00
Qt Submodule Update Bot 39dad73f53 Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: I5a31cf3094948ff0db8c941de860c2e120798283
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-11-12 13:00:34 +00:00
Qt Submodule Update Bot 3e94a2d1b9 Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: Ia410f6ccf9a62a69c9a783024d1b13e237c57c90
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-11-11 21:17:38 +00:00
Qt Submodule Update Bot 00a42cda17 Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: Id538fe7eafc80877788e65b7dc0be7efd94ad9e4
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-11-10 22:28:49 +00:00
Qt Submodule Update Bot e4efe7de3b Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: I64cb4be5e4d800d7244ac872cf5fe2e6a049cb75
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-11-07 13:15:19 +00:00
Qt Submodule Update Bot 34f874b01d Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: I5b6d2c8bb60cc62f89df714e154bfe030b4c7b59
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-11-05 23:26:17 +00:00
Qt Submodule Update Bot f8aad988fb Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: Icdc3abf68f802372d062a84beb061bab0d646683
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-11-01 18:10:36 +00:00
Qt Submodule Update Bot abc61ba63a Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: Ibe665ab53c5b68fdd73d946f7732735b0e22a7aa
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-10-30 22:06:21 +00:00
Qt Submodule Update Bot ad60029868 Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: I3c473b9be4a50a1c8ed17b0b0d93a78cbea0c4ea
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-10-27 18:43:19 +00:00
Qt Submodule Update Bot 51dfbf2a3b Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: Ifac7686200c38eb9ca5fd60f9b21c12f228f1f3e
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-10-24 02:02:33 +00:00
Ivan Solovev 42b3dd064d Fix QBluetoothDeviceInfo::isCached() on Windows
The Windows backend was unconditionally marking each discovered device
as cached. However, a correct thing to do it to only mark those devices
that come from the OS cache.
For Windows these are always the paired devices.

However, there's one caveat here as well. If the device is cached, but
at the same time actually available, Windows will first report it with
rssi == 0 (at least in case of BTLE devices), and only then deliver an
update with the correct RSSI value.

This patch implements the following logic:
* All newly-discovered paired devices are marked as cached first
* Once there's an update, the device is not considered as cached
  anymore.

This works fine for BTLE devices, because they regularly report at
least the RSSI updates.

For Classic Bluetooth we don't have any device updates during the
discovery, so simply rely on the pairing status at the time of
initial discovery.

Fixes: QTBUG-140825
Pick-to: 6.10 6.8
Change-Id: Ifd9ca57fe837522be01555984637cea65094900c
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
2025-10-09 15:45:18 +02:00
Assam Boudjelthia 00ef8813c4 Account for safe margins in low energy scanner example
Fixes: QTBUG-140697
Pick-to: 6.10
Change-Id: If622030d260a76a6a76e54aeaf5dbfe44602c7f9
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2025-10-09 15:21:29 +03:00
Qt Submodule Update Bot 7b395b9fb2 Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: Ibe1f71d665c0a04abdaff629a61b9fdf0598b3e0
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-10-09 11:36:55 +00:00
Ilya Katsnelson 0ece5a2edc nfc: fix typo in configure summary
Pick-to: 6.10 6.8
Change-Id: Ie57aedc8e3fc03733207316779e26748f168636c
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
2025-10-08 12:53:27 +03:00
Ivan Solovev 884973ff96 BlueZ: avoid registering the same UUID twice
Certain applications, like the btchat example, need to act as both a
server and a client, using the same service-UUID.

In the server role, they need to advertise the service. To achieve that,
QBluetoothServiceInfo BlueZ implementation is registering a profile
for the UUID.

In the client role, the application needs to connect to a service with
the same service-UUID, as advertised by the server. In order to do it,
the QBluetoothSocketPrivateBluezDBus::connectToServiceHelper() method
was trying to register another profile for the same service-UUID.
Starting from some BlueZ version, this is causing an error:

  Client profile registration failed: "UUID already registered"

However, reading the BlueZ docs, I noticed that the RegisterProfile()
method has a "Service" option, whose description tells:

  string Service: The primary service class UUID (if different from
                  the actual profile UUID).

This option was already used in the code, but it was a no-op, because
it had the same service-UUID, as the one that we were trying to
register.

This patch tries to register a client profile with a random UUID, but
pass the correct UUID in the "Service" option (as before). My tests
show that this approach works.

With this patch I was able to start two btchat applications in my
Ubuntu VM, and use one of them as a server (with a macOS client),
and the other one - as a client connected to an Android server.

Task-number: QTBUG-123197
Pick-to: 6.10 6.8 6.5
Change-Id: I71bc231d49929ad54498e9a391d4668e51e6bc3b
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
2025-10-08 08:29:59 +02:00
Qt Submodule Update Bot 1b09545fb0 Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: Icf70be01be298e72f68d29600eed4ec341357839
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-10-03 10:52:00 +00:00
Qt Submodule Update Bot 4e5ff15739 Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: I4738a121ec444ce80ba4d4cf0a7fd0b19e2c54ac
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-09-30 22:12:47 +00:00
Qt Submodule Update Bot ef855e450a Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: Ia96f71c1519a8bfb511d2ed3f1f55a1dc28aba0a
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-09-29 10:46:39 +00:00
Qt Submodule Update Bot ff3b2fdb88 Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: If1fc9ed519507db7a1df05612c5fdf90089943bb
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-09-26 18:22:19 +00:00
Qt Submodule Update Bot 0568f24b09 Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: Ifc975b0b3d3a81af0f9bd7b37a2bb1404bf04473
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-09-20 14:14:41 +00:00
Marc Mutz 195802c240 Expect user-defined QT_NO_INT128 in removed_api.cpp
We currently don't support building Qt with GCC and -ansi (or
-std=c++NN as opposed to -std=gnu++NN), because in that mode, the
language still recognizes __int128_t, but the C++ standard library
does not, leading to bloopers such as std::is_integral_v<__int128_t>
== false or std::is_signed_v<__int128_t> == false, or simply
std::numerical_limits<__int128_t> not being properly specialized.

But we do have QT_NO_INT128, which, when defined, disables all the Qt
extended integer support.

A user requested to allow compiling with -ansi again, to which I
responded that they should define QT_NO_INT128 then, too, but, of
course, the unconditional #define in bluetooth/removed_api.cpp would
cause a redefinition warning.

So fix the code to use a conditional #define.

Amends 5d90296f31.

Pick-to: 6.10 6.9 6.8
Task-number: QTBUG-139280
Change-Id: I0e453270bea883e995b0cb058bf15111b6f3adc8
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2025-09-09 07:52:29 +00:00
Qt Submodule Update Bot 91d00f8bec Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: I06623e11575804c75f6ce6ae6fe4eb244c78c2f3
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-09-05 13:31:32 +00:00
Qt Submodule Update Bot 13b3dce650 Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: If45b3c44c672e0b38bc7754a1f243d0be77d0c1c
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-09-01 20:59:25 +00:00
Tasuku Suzuki 87207253ff Remove extra semi-colons
Change-Id: If8a88e89263ad98ead467bbac210c90124e64e26
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
2025-08-28 21:47:10 +09:00
Qt Submodule Update Bot 171f3ad09b Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: I82c2f51564e370cc1a474a41b5cdeaebf81caa4f
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-08-08 22:40:30 +00:00
Topi Reinio be4751c28c Doc: Fix incorrect usage of \generatelist
The \generatelist command takes an optional argument
that affect how the members are listed, for example,
`classesbymodule` which creates an annotated list of
the classes in a named C++ module.

`groupsbymodule` is not recognized or documented. QDoc
falls back to generating a list of all members of a
group in this case. While the end result is correct,
this relies on an undocumented feature that is likely
to change and break.

Replace these instances with an explicit \annotatedlist
command that produces the same output.

Pick-to: 6.10
Task-number: QTBUG-138901
Change-Id: Ia1122395191d3cad75c7fa6058f52122d3045da4
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
2025-08-06 09:15:13 +00:00
Qt Submodule Update Bot 0e8a0121b8 Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: If12e20dfb4e7e925d220724fa345254e92d8fbad
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-08-05 10:45:59 +00:00
Alexey Edelev 80b3f7d346 Disable QT_USE_ANDROID_MODERN_BUNDLE
The 'androidtestrunner' tool doesn't grant the permissions to
tests when installing aab using bundletool. Disable
QT_USE_ANDROID_MODERN_BUNDLE flag, for qtconnectivity tests.
See QTBUG-138597.

Change-Id: Id40d10df1fce7dd4791cab02691162fedf4099d1
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2025-07-21 18:22:51 +02:00
Qt Submodule Update Bot c794dad025 Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: I9875b0c7c8d20aa026d4c664d8ab52d8c03aefb0
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-07-21 16:22:48 +00:00
Tim Blechmann 2045372789 Bluetooth: add missing namespace macros
When buiding namespaced Qt, we need to hide all qt classes inside qt's
namespace.

Pick-to: 6.10
Change-Id: I06ba954772384c9d45c0c20050561338af9c4cc8
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2025-07-21 16:26:49 +08:00
Lucie Gérard 3189d6dae3 Remove year from Qt Copyright in REUSE.toml
Change-Id: I2c514b2f839a480d3bc2006f8698c753b11ca8cb
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2025-07-14 09:46:49 +02:00
Qt Submodule Update Bot b1dfe8ed5b Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: Ib5f2fb78addaccbf72519a2edb9328b22d9b53c3
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-07-07 10:37:14 +00:00
Dheerendra Purohit 8bd407361e Doc: Add textual descriptions for QtNfc documentation images
Add textual descriptions for annotatedurl.png, annotatedurl2.png,
annotatedurl3.png, and ndefeditor.png in the QtNfc documentation to
ensure QDoc generates alt text.

Pick-to: 6.10 6.9
Fixes: QTBUG-136150
Change-Id: I4ec18fcc7e6a22479173488dd44a00e713a476bd
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2025-07-04 06:19:13 +00:00
Dheerendra Purohit f63823f4de Doc: Add textual descriptions for QtBluetooth documentation images
Added textual descriptions to images in the QtBluetooth documentation
to ensure QDoc generates alt text.

Pick-to: 6.10 6.9
Fixes: QTBUG-136156
Change-Id: I94ffbb6cb713ac3141f229c9c18e9bc2bd94185c
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2025-07-04 06:18:58 +00:00
Qt Submodule Update Bot 48755ae57c Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: I3cce255944b5705d5ee7f172b2587846c7947834
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-07-03 15:33:48 +00:00
Qt Submodule Update Bot ed449820fd Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: Ife13af8402fa2476d146a5235fe66c386dd8c180
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-07-01 22:39:13 +00:00
Qt Submodule Update Bot 6bc617f81a Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: I448e17f5232a5bc998e944e3d0cad1b9470160c2
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-06-30 14:25:52 +00:00
Qt Submodule Update Bot 17bff1cb1a Update dependencies on 'dev' in qt/qtconnectivity
Change-Id: I9ab194d7ae17aac9f202d2890acace67169f620f
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-06-27 16:09:47 +00:00