[applets/batterymonitor] Split long expression

GIT_SILENT
wilder-5.24
ivan tkachenko 4 years ago
parent 1040e391dd
commit 9fc0c9136c
No known key found for this signature in database
GPG Key ID: 4D197017E61437CF
  1. 4
      applets/batterymonitor/package/contents/ui/BatteryItem.qml

@ -47,7 +47,9 @@ Item {
PlasmaComponents3.Label {
id: detailsLabel
width: modelData.value && parent ? parent.width - detailsLayout.leftColumnWidth - PlasmaCore.Units.smallSpacing : detailsLayout.leftColumnWidth + PlasmaCore.Units.smallSpacing
width: modelData.value && parent
? parent.width - detailsLayout.leftColumnWidth - PlasmaCore.Units.smallSpacing
: detailsLayout.leftColumnWidth + PlasmaCore.Units.smallSpacing
wrapMode: Text.NoWrap
onPaintedWidthChanged: { // horrible HACK to get a column layout
if (paintedWidth > detailsLayout.leftColumnWidth) {

Loading…
Cancel
Save