Index: sources/gui/qml/pages/settings/SettingsBluetoothCuff.qml =================================================================== diff -u -r2b90169339a65399c03c31d1a40adffee87e7719 -r6c6f1f5d466badd9b4fd67be7c907234c342b2a2 --- sources/gui/qml/pages/settings/SettingsBluetoothCuff.qml (.../SettingsBluetoothCuff.qml) (revision 2b90169339a65399c03c31d1a40adffee87e7719) +++ sources/gui/qml/pages/settings/SettingsBluetoothCuff.qml (.../SettingsBluetoothCuff.qml) (revision 6c6f1f5d466badd9b4fd67be7c907234c342b2a2) @@ -1,15 +1,15 @@ /*! * - * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. + * Copyright (c) 2021-2023 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * - * \file SettingsDateTimeSet.qml + * \file SettingsBluetoothCuff.qml * \author (last) Behrouz NematiPour - * \date (last) 03-Jun-2021 + * \date (last) 23-Nov-2022 * \author (original) Behrouz NematiPour - * \date (original) 03-Jun-2021 + * \date (original) 06-Sep-2021 * */ @@ -27,9 +27,10 @@ * \brief SettingsBluetoothCuff is used to scan for Omron Bluetooth Cuff * devices and to let user to connect to it to be able to read the Vital measurements. */ -SettingsBase { id: _root - itemIndex : SettingsStack.Bluetooth +SettingsBase { id: _root + itemIndex : SettingsStack.Bluetooth confirmVisible : false + Image { id: _image width : 640 height : 480 @@ -79,7 +80,7 @@ anchors.leftMargin: 5 } onClicked: { - vBluetooth.didDeviceSelect(addr, name); + vBluetooth.didDeviceSelect(addr, name) } ProgressCircle { minimum : 0 @@ -117,8 +118,9 @@ vDevice.doInitBluetoothPairedReset() } } + Connections { target: vDevice - onBluetoothPairedResetChanged : { + function onBluetoothPairedResetChanged ( vValue ) { // DEBUG: console.debug("bluetoothPairedReset", vbluetoothPairedReset, vDevice.accepted, vDevice.reason, vDevice.status) // NOTE : vbluetoothPairedReset eq vDevice.reason if ( vDevice.accepted ) { @@ -135,4 +137,7 @@ // done : _delegate.stepDone } notificationText : vBluetooth.notification || vDevice.status + Component.onCompleted : { + vDevice.doInitBluetoothPairedQuery() + } }