27 height: row.height + units.gu(1)
31 readonly
property var actions: root.widgetData ? root.widgetData[
"actions"] : null
32 anchors.right: parent.right
38 readonly
property bool button: row.actions && row.actions.length == 2
39 readonly
property bool combo: row.actions && row.actions.length > 2
40 source: button ?
"PreviewActionButton.qml" : (combo ?
"PreviewActionCombo.qml" :
"")
41 width: (root.width - units.gu(1)) / 2
44 item.data = row.actions[1];
46 item.model = row.actions.slice(1);
52 root.triggered(root.widgetId, actionData.id, actionData);
58 data: visible ? row.actions[0] : null
59 visible: row.actions && row.actions.length > 0
60 onTriggeredAction: root.triggered(root.widgetId, actionData.id, actionData)
61 width: (root.width - units.gu(1)) / 2