Add a busy indicator while waiting for initial contact with a PC

This commit is contained in:
Cameron Gutman
2018-08-05 12:13:08 -07:00
parent 1dcf55515b
commit 493165f57f
3 changed files with 13 additions and 1 deletions

View File

@@ -102,7 +102,7 @@ GridView {
// TODO: Tooltip
id: stateIcon
anchors.centerIn: pcIcon // TODO: Center within screen
visible: !model.addPc && (!model.online || !model.paired)
visible: !model.addPc && !model.statusUnknown && (!model.online || !model.paired)
source: !model.online ? "qrc:/res/baseline-warning-24px.svg" : "qrc:/res/baseline-lock-24px.svg"
sourceSize {
width: 50
@@ -110,6 +110,14 @@ GridView {
}
}
BusyIndicator {
id: statusUnknownSpinner
anchors.centerIn: pcIcon
width: 50
height: 50
visible: !model.addPc && model.statusUnknown
}
Text {
id: pcNameText
text: model.name