@@ -5,9 +5,10 @@ import QtQuick.Dialogs 1.2
5
5
import API.FileProcessor 1.0
6
6
7
7
Page {
8
+ id: secpage
8
9
width: mainwindow .width
9
10
height: mainwindow .height
10
-
11
+ property bool processing : false
11
12
Keys .onDeletePressed : filelist .removeMode ? filelist .removeIndexList () : 0
12
13
13
14
MyToolBar {
@@ -150,7 +151,7 @@ Page {
150
151
151
152
MyButton {
152
153
id: startbutton
153
- enabled: filelist .removeMode ? false : true
154
+ enabled: filelist .removeMode || secpage . processing ? false : true
154
155
anchors .right : cancelbutton .left
155
156
anchors .rightMargin : 10
156
157
anchors .verticalCenter : parent .verticalCenter
@@ -167,7 +168,8 @@ Page {
167
168
font .pixelSize : 15
168
169
onClicked: {
169
170
filep .started = true
170
- startbutton .enabled = false
171
+ secpage .processing = true
172
+ // startbutton.enabled = false
171
173
// filep.startprocess()
172
174
}
173
175
}
@@ -198,7 +200,8 @@ Page {
198
200
return
199
201
}
200
202
filep .started = false
201
- startbutton .enabled = true
203
+ // startbutton.enabled = true
204
+ secpage .processing = false
202
205
progresscanvas .value = 0
203
206
progresscanvas .requestPaint ()
204
207
}
@@ -380,6 +383,7 @@ Page {
380
383
}
381
384
FileDialog {
382
385
id: filedialog
386
+ folder: shortcuts .home + " /Pictures"
383
387
onAccepted: {
384
388
var url = String (filedialog .fileUrl ).split (" /" )
385
389
// model1.insert(0, {filename: url[url.length - 1], size: "10GB", type: "JPG"})
0 commit comments