mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add button to rescan BT devices
Otherwise the divecomputer has to be in pairing mode at app start time. Unfortunately, this leaves less space for the progress message. My time/qml knowledge does not suffice to move that to the next line (when moving that out of the RowLayout it overlaps with the buttons). Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
8f318c7e69
commit
afd46a60f7
4 changed files with 16 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
- Add button to recan for BT devices
|
||||||
- Compute plan variations in background to improve responsiveness
|
- Compute plan variations in background to improve responsiveness
|
||||||
- Improve profile rescaling in planner
|
- Improve profile rescaling in planner
|
||||||
- Store the gas switch depth of a cylinder from the planner in the logbook
|
- Store the gas switch depth of a cylinder from the planner in the logbook
|
||||||
|
|
|
@ -215,6 +215,14 @@ Kirigami.Page {
|
||||||
manager.appendTextToLog("exit DCDownload screen")
|
manager.appendTextToLog("exit DCDownload screen")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
SsrfButton {
|
||||||
|
id:rescanbutton
|
||||||
|
text: qsTr("Rescan")
|
||||||
|
onClicked: {
|
||||||
|
manager.btRescan()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
Layout.maximumWidth: parent.width - download.width - quitbutton.width
|
Layout.maximumWidth: parent.width - download.width - quitbutton.width
|
||||||
text: divesDownloaded ? qsTr(" Downloaded dives") :
|
text: divesDownloaded ? qsTr(" Downloaded dives") :
|
||||||
|
|
|
@ -96,6 +96,11 @@ void QMLManager::btHostModeChange(QBluetoothLocalDevice::HostMode state)
|
||||||
emit btEnabledChanged();
|
emit btEnabledChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void QMLManager::btRescan()
|
||||||
|
{
|
||||||
|
BTDiscovery::instance()->BTDiscoveryReDiscover();
|
||||||
|
}
|
||||||
|
|
||||||
QMLManager::QMLManager() : m_locationServiceEnabled(false),
|
QMLManager::QMLManager() : m_locationServiceEnabled(false),
|
||||||
m_verboseEnabled(false),
|
m_verboseEnabled(false),
|
||||||
reply(0),
|
reply(0),
|
||||||
|
|
|
@ -192,6 +192,8 @@ public slots:
|
||||||
void appendTextToLog(const QString &newText);
|
void appendTextToLog(const QString &newText);
|
||||||
void quit();
|
void quit();
|
||||||
void hasLocationSourceChanged();
|
void hasLocationSourceChanged();
|
||||||
|
void btRescan();
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString m_cloudUserName;
|
QString m_cloudUserName;
|
||||||
|
|
Loading…
Add table
Reference in a new issue