17 implicitHeight: currentItem.implicitHeight
19 property bool running: false
20 property alias pluginType: altsModel.pluginType
21 property alias inputData: altsModel.inputData
22 property Component highlight
23 property Component header
24 property Component footer
25 property var verticalLayoutDirection: ListView.TopToBottom
26 property Component delegate: Component {
28 width: ListView.view.width
30 Layout.fillWidth: true
32 elide: Text.ElideRight
35 text: i18nd("libpurpose6_quick",
"Use")
36 onClicked: createJob(index);
38 Keys.onReturnPressed: createJob(index)
39 Keys.onEnterPressed: createJob(index)
49 signal finished(var output,
int error,
string message)
51 PurposeAlternativesModel {
58 function createJob(index) {
59 stack.push(jobComponent, {index: index})
66 for(; stack.depth>1; stack.pop())
70 initialItem: ListView {
75 implicitHeight: contentHeight
77 verticalLayoutDirection: stack.verticalLayoutDirection
78 delegate: stack.delegate
79 highlight: stack.highlight
92 if (state === PurposeJobController.Finished || state === PurposeJobController.Error) {
93 stack.finished(jobView.job.output, jobView.job.error, jobView.job.errorString);
94 }
else if (state === PurposeJobController.Cancelled) {
99 Component.onCompleted:
start()
Q_SCRIPTABLE Q_NOREPLY void start()