Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/JobDialog.qml
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Line(s) | 75 | PurposeWizard { | |||
---|---|---|---|---|---|
76 | id: wiz | 76 | id: wiz | ||
77 | configuration: window.configuration | 77 | configuration: window.configuration | ||
78 | focus: true | 78 | focus: true | ||
79 | 79 | | |||
80 | anchors.fill: parent | 80 | anchors.fill: parent | ||
81 | } | 81 | } | ||
82 | 82 | | |||
83 | footer: RowLayout { | 83 | footer: RowLayout { | ||
84 | Item { | ||||
85 | Layout.fillWidth: true | ||||
86 | } | ||||
84 | Button { | 87 | Button { | ||
85 | text: i18n("Run") | 88 | text: i18n("Send") | ||
89 | icon.name: "document-send" | ||||
86 | enabled: window.configuration && window.configuration.isReady | 90 | enabled: window.configuration && window.configuration.isReady | ||
87 | onClicked: { | 91 | onClicked: { | ||
88 | view.pop(); | 92 | view.pop(); | ||
89 | window.startJob(); | 93 | window.startJob(); | ||
90 | } | 94 | } | ||
91 | } | 95 | } | ||
92 | Button { | 96 | Button { | ||
93 | text: i18n("Cancel") | 97 | text: i18n("Cancel") | ||
98 | icon.name: "dialog-cancel" | ||||
94 | onClicked: { | 99 | onClicked: { | ||
95 | window.q.finished(null, 1 /* KIO::ERR_USER_CANCELED */, i18n("Configuration cancelled")); | 100 | window.q.finished(null, 1 /* KIO::ERR_USER_CANCELED */, i18n("Configuration cancelled")); | ||
96 | window.visible = false; | 101 | window.visible = false; | ||
97 | } | 102 | } | ||
98 | } | 103 | } | ||
99 | Item { | | |||
100 | Layout.fillWidth: true | | |||
101 | } | | |||
102 | } | 104 | } | ||
103 | } | 105 | } | ||
104 | } | 106 | } | ||
105 | 107 | | |||
106 | Component { | 108 | Component { | ||
107 | id: runningJobComponent | 109 | id: runningJobComponent | ||
108 | RunningJob { | 110 | RunningJob { | ||
109 | onResult: { | 111 | onResult: { | ||
110 | window.q.finished(job.output, job.error, job.errorString); | 112 | window.q.finished(job.output, job.error, job.errorString); | ||
111 | window.visible = false | 113 | window.visible = false | ||
112 | } | 114 | } | ||
113 | } | 115 | } | ||
114 | } | 116 | } | ||
115 | } | 117 | } |