Commit 58c270b0 authored by Marco Martin's avatar Marco Martin
Browse files

base on height for items that should have a top padding

when we have a simple
Item {
  Kirigami.FormData.isSeparator: true
}

we don't want top padding and that will have 0x0 size.
anything that has an own display, will get a top padding

BUG:405614
parent e5a6ac33
......@@ -245,7 +245,7 @@ Item {
visible: item.visible
width: Kirigami.Units.smallSpacing
height: Kirigami.Units.smallSpacing
Layout.topMargin: item.toString().indexOf("Separator")===0 ? Kirigami.Units.smallSpacing : 0 // FIXME: use item instanceof Kirigami.Separator when we can depend from Qt 5.11
Layout.topMargin: item.height > 0 ? Kirigami.Units.smallSpacing : 0
onItemChanged: {
if (!item) {
labelItem.destroy();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment