[sailfish] Added ViewPlaceholder: hint on how to create labels

This commit is contained in:
Michael Käufl 2014-10-31 22:04:09 +01:00
parent 923fe408b1
commit 45d0c04d0b

View file

@ -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 {