@@ -45,24 +45,13 @@ Column {
45 rightMargin: units.gu(1)
45 rightMargin: units.gu(1)
47 columns: 2 + repeater.count % 2
47 columns: 2 + repeater.count % 2
48− rowSpacing: units.gu(.5)
48+ rowSpacing: units.gu(2)
50 Repeater {
50 Repeater {
51 id: repeater
51 id: repeater
52 delegate: Row {
52 delegate: Row {
53 objectName: "delegate" + index
53 objectName: "delegate" + index
54 spacing: units.gu(0.5)
54 spacing: units.gu(0.5)
55− readonly property int column: index % grid.columns;
57− if (column == 0) return Qt.AlignLeft;
58− if (column == grid.columns - 1 || index == repeater.count - 1) return Qt.AlignRight;
59− if (column == 1) return Qt.AlignHCenter;
61− Layout.column: index % grid.columns
62− Layout.row: index / grid.columns
63− Layout.columnSpan: index == repeater.count - 1 && grid.columns == 3 && column == 1 ? 2 : 1
64− Layout.maximumWidth: Math.max(icon.width, label.x + label.implicitWidth)
65− Layout.fillWidth: true
66 height: units.gu(2)
55 height: units.gu(2)
67 AbstractButton {
56 AbstractButton {
68 height: units.gu(2)
57 height: units.gu(2)
@@ -88,12 +77,10 @@ Column {
91− width: parent.width - x
92 anchors.verticalCenter: parent.verticalCenter
80 anchors.verticalCenter: parent.verticalCenter
93 text: "label" in modelData && modelData["label"] || "";
81 text: "label" in modelData && modelData["label"] || "";
94 elide: Text.ElideRight
82 elide: Text.ElideRight
95 maximumLineCount: 1
83 maximumLineCount: 1
96− font.weight: "style" in modelData && modelData["style"] === "highlighted" ? Font.Bold : Font.Light
97 fontSize: "x-small"
84 fontSize: "x-small"
98 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale)
85 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale)
99 color: socialAttributes.color
86 color: socialAttributes.color