2023-03-21 05:10:06 +00:00
|
|
|
import QtQuick 2.15
|
2023-01-04 17:21:24 +00:00
|
|
|
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
import StatusQ.Components 0.1
|
|
|
|
|
|
|
|
Column {
|
|
|
|
spacing: 10
|
|
|
|
|
|
|
|
StatusCheckBox {
|
|
|
|
id: loadingButton
|
|
|
|
text: checked ? "loaded": "loading"
|
|
|
|
checkState: Qt.Unchecked
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusTextWithLoadingState {
|
|
|
|
font.pixelSize: 15
|
|
|
|
text: "Text is big"
|
|
|
|
loading: loadingButton.checked
|
|
|
|
width: 100
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusTextWithLoadingState {
|
|
|
|
font.pixelSize: 22
|
|
|
|
text: "Text is big"
|
|
|
|
loading: loadingButton.checked
|
|
|
|
width: 200
|
|
|
|
}
|
|
|
|
|
2023-03-21 05:10:06 +00:00
|
|
|
component DeviceListItem: StatusListItem {
|
2023-01-04 17:21:24 +00:00
|
|
|
title: "Nokia 3310"
|
|
|
|
subTitle: "Incoming device"
|
|
|
|
asset.width: 40
|
|
|
|
asset.height: 40
|
|
|
|
asset.emoji: "😁"
|
|
|
|
asset.color: "hotpink"
|
|
|
|
asset.letterSize: 14
|
|
|
|
asset.isLetterIdenticon: true
|
2023-03-21 05:10:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DeviceListItem {
|
2023-01-04 17:21:24 +00:00
|
|
|
statusListItemSubTitle.loading: loadingButton.checked
|
|
|
|
}
|
|
|
|
|
2023-03-21 05:10:06 +00:00
|
|
|
DeviceListItem {
|
2023-01-04 17:21:24 +00:00
|
|
|
statusListItemSubTitle.loading: loadingButton.checked
|
|
|
|
statusListItemIcon.loading: loadingButton.checked
|
|
|
|
}
|
|
|
|
|
2023-03-21 05:10:06 +00:00
|
|
|
DeviceListItem {
|
2023-01-04 17:21:24 +00:00
|
|
|
statusListItemTitle.loading: loadingButton.checked
|
|
|
|
statusListItemSubTitle.loading: loadingButton.checked
|
|
|
|
statusListItemIcon.loading: loadingButton.checked
|
|
|
|
}
|
|
|
|
}
|