// We need to center on the free space below contentItem, not the full
// ListView. This invisible item helps make that positioning work no
// matter the window height
Item{
anchors{
// We need to center on the free space below contentItem, not the full ListView.
// Setting both top and bottom anchors (or using anchors.fill) stretches the component
// and distorts the spacing between its internal items.
// This is fine as long as we have a single item here.
horizontalCenter:parent.horizontalCenter
left:parent.left
right:parent.right
top:parent.contentItem.bottom
bottom:parent.bottom
}
width:parent.width-(units.largeSpacing*4)
helpfulAction:QQC2.Action{
text:i18n("Add Property...")
icon.name:"list-add-symbolic"
onTriggered:{
propertySheet.open();
}
visible:rulesView.count<=4
Kirigami.PlaceholderMessage{
id:hintArea
anchors.centerIn:parent
width:parent.width-(units.largeSpacing*4)
text:i18n("No window properties changed")
explanation:xi18nc("@info","Click the <interface>Add Property...</interface> button below to add some window properties that will be affected by the rule")