on xenial help sign in
Force row to be 2GU high and improve invalid value handling
commit4b1697d2f38f64aee94536fd5545f26430647d38 authorMichał Sawicz <michal.sawicz@canonical.com> dateSat 16 Aug 2014, 12:41 (12 years ago) parent3dd875d
1 file changed+3−3
plugins/Dash/CardAttributes.qml+3−3
plugins/Dash/CardAttributes.qml+3−3
@@ -44,18 +44,18 @@ GridLayout {
4444 Layout.columnSpan: index == repeater.count - 1 && grid.columns == 3 && column == 1 ? 2 : 1
4545 Layout.maximumWidth: Math.max(icon.width, label.x + label.implicitWidth)
4646 Layout.fillWidth: true
47− height: implicitHeight || units.gu(2)
47+ height: units.gu(2)
4848 StatusIcon {
4949 id: icon
5050 height: units.gu(2)
5151 sets: ["actions", "status", "apps"]
52− source: "icon" in modelData ? modelData["icon"] : ""
52+ source: "icon" in modelData && modelData["icon"] || ""
5353 }
5454 Label {
5555 id: label
5656 width: parent.width - x
5757 anchors.verticalCenter: parent.verticalCenter
58− text: "value" in modelData ? modelData["value"] : "";
58+ text: "value" in modelData && modelData["value"] || "";
5959 elide: Text.ElideRight
6060 maximumLineCount: 1
6161 font.weight: "style" in modelData && modelData["style"] == "highlighted" ? Font.DemiBold : Font.Light