diff options
author | Simo Fält <simo.falt@qt.io> | 2022-09-01 08:15:19 +0300 |
---|---|---|
committer | Simo Fält <simo.falt@qt.io> | 2022-09-01 08:15:19 +0300 |
commit | 789fc5d65d2e0ba95cda25e63f74dd4def87a775 (patch) | |
tree | 28019fcbb368b64fad68d930a2587ee22092d71b /examples/bluetooth/btscanner/device.py | |
parent | 54a301d83910a760ff7f7aa5bea1e3c3d7226bc8 (diff) | |
parent | 0ad10f40c9cdbe6d054b6e7ffd60d14846a1d4aa (diff) |
Merge remote-tracking branch 'origin/6.3' into wip/6.3_pypy
Change-Id: I049daa7bbac16b4cf680dc60d65553277064b231
Diffstat (limited to 'examples/bluetooth/btscanner/device.py')
-rw-r--r-- | examples/bluetooth/btscanner/device.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/bluetooth/btscanner/device.py b/examples/bluetooth/btscanner/device.py index bf8194bc5..feb1cd967 100644 --- a/examples/bluetooth/btscanner/device.py +++ b/examples/bluetooth/btscanner/device.py @@ -125,7 +125,7 @@ class DeviceDiscoveryDialog(QDialog): else: self._local_device.setHostMode(QBluetoothLocalDevice.HostPoweredOff) - @Slot(QBluetoothLocalDevice.HostMode) + @Slot("QBluetoothLocalDevice::HostMode") def host_mode_state_changed(self, mode): self._ui.power.setChecked(mode != QBluetoothLocalDevice.HostPoweredOff) self._ui.discoverable.setChecked(mode == QBluetoothLocalDevice.HostDiscoverable) @@ -155,7 +155,7 @@ class DeviceDiscoveryDialog(QDialog): elif chosen_action == remove_pair_action: self._local_device.requestPairing(address, QBluetoothLocalDevice.Unpaired) - @Slot(QBluetoothAddress, QBluetoothLocalDevice.Pairing) + @Slot(QBluetoothAddress, "QBluetoothLocalDevice::Pairing") def pairing_done(self, address, pairing): items = self._ui.list.findItems(address.toString(), Qt.MatchContains) |