[sailfish] Added ViewPlaceholder: hint on how to create labels
This commit is contained in:
parent
923fe408b1
commit
45d0c04d0b
1 changed files with 9 additions and 4 deletions
|
|
@ -50,10 +50,7 @@ Page {
|
|||
}
|
||||
Label {
|
||||
id: info
|
||||
text: page.labels && page.labels.length > 0 ?
|
||||
(page.headline !== null ? page.headline : "") :
|
||||
qsTr("You have no label defined. You can create " +
|
||||
"them in the webview")
|
||||
text: page.headline !== null ? page.headline : ""
|
||||
width: parent.width
|
||||
font.weight: Font.Bold
|
||||
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||||
|
|
@ -108,6 +105,14 @@ Page {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
ViewPlaceholder {
|
||||
enabled: listView.count === 0
|
||||
text: network.loading ?
|
||||
qsTr("Loading") :
|
||||
qsTr("You have no label defined. You can create them " +
|
||||
"in the webview.")
|
||||
}
|
||||
}
|
||||
|
||||
BusyIndicator {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue