@@ -39,13 +39,13 @@ PreviewWidget {
39 readonly property bool button: row.actions && row.actions.length == 2
39 readonly property bool button: row.actions && row.actions.length == 2
40 readonly property bool combo: row.actions && row.actions.length > 2
40 readonly property bool combo: row.actions && row.actions.length > 2
41 source: button ? "PreviewActionButton.qml" : (combo ? "PreviewActionCombo.qml" : "")
41 source: button ? "PreviewActionButton.qml" : (combo ? "PreviewActionCombo.qml" : "")
42+ width: (root.width - units.gu(1)) / 2
42 onLoaded: {
43 onLoaded: {
43 if (button) {
44 if (button) {
44 item.data = row.actions[1];
45 item.data = row.actions[1];
45 } else if (combo) {
46 } else if (combo) {
46 item.model = row.actions.slice(1);
47 item.model = row.actions.slice(1);
48− item.width = Qt.binding(function() { return (root.width - units.gu(1)) / 2; });
50 Connections {
50 Connections {
51 target: loader.item
51 target: loader.item