Prettify a long expression

This commit is contained in:
Emil Lundberg 2017-11-21 16:10:40 +01:00
parent 7c6b8c4b4f
commit 3978efc1bf
No known key found for this signature in database
GPG Key ID: 5B9688125FF0B636

View File

@ -21,13 +21,10 @@ Rectangle {
}
}
Layout.minimumHeight: {
var baseHeight = issuerLbl.height
+ codeLbl.height + nameLbl.height + 10
return hasCustomTimeBar(
model.credential) ? baseHeight
+ 10 : baseHeight
}
Layout.minimumHeight: (
10 + issuerLbl.height + codeLbl.height + nameLbl.height
+ (hasCustomTimeBar(model.credential) ? 10 : 0)
)
Layout.fillWidth: true
Layout.alignment: Qt.AlignTop