Fix placeholder names for supplies
This commit is contained in:
parent
187fd4226e
commit
f7790e2ed3
1 changed files with 4 additions and 4 deletions
|
@ -9,8 +9,8 @@ import "../components"
|
|||
property int level: 100
|
||||
property int high_level: 100
|
||||
property int low_level: 0
|
||||
property string name: qsTr("Unknown supply")
|
||||
property string type: qsTr("Unknown type")
|
||||
property string name: ""
|
||||
property string type: ""
|
||||
|
||||
spacing: Theme.paddingMedium
|
||||
bottomPadding: Theme.paddingMedium
|
||||
|
@ -34,12 +34,12 @@ import "../components"
|
|||
anchors.verticalCenter: parent.verticalCenter
|
||||
Label
|
||||
{
|
||||
text: name
|
||||
text: name != "" ? name : qsTr("Unknown supply")
|
||||
font.pixelSize: Theme.fontSizeExtraSmall
|
||||
}
|
||||
Label
|
||||
{
|
||||
text: type
|
||||
text: type != "" ? type : qsTr("Unknown type")
|
||||
font.pixelSize: Theme.fontSizeExtraSmall
|
||||
color: Theme.secondaryColor
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue