~ubuntu-branches/ubuntu/vivid/youker-assistant/vivid

« back to all changes in this revision

Viewing changes to qml/func/cleaner/FileModel.qml

  • Committer: Package Import Robot
  • Author(s): Aron Xu
  • Date: 2014-03-24 15:52:37 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20140324155237-3kod0m3wr2a2ag39
Tags: 1.0.1-0ubuntu1
* New upstream release (LP: #1294936).
* Modify display mode of weather forecast and system settings.
* Add file manager and font style settings.
* Improve system settings and restoring default settings.
* Cache user account (not password).
* Change the position of window control buttons.
* Add configuration for Kingsoft KuaiPan cloud client.
* Add the instruction of Youker Assistant.
* Open related folders when scanning items got double-clicked.
* Notify users when operating the Kingsoft disk cloud configuration.
* Modify Dbus starting method.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
                num++;
67
67
            }
68
68
            else {
69
 
                subModel.append({"itemTitle": splitlist[0], "desc": splitlist[1], "number": ""});
 
69
                subModel.append({"itemTitle": splitlist[0], "desc": splitlist[1], "number": "", "index": i});
 
70
                systemdispatcher.set_largestfile_args(splitlist[1]);
70
71
//                if(root.yesOrno == "true") {
71
72
//                    console.log("is yes...........");
72
73
//                    systemdispatcher.set_largestfile_args(splitlist[1]);
84
85
        }
85
86
        mainModel.clear();
86
87
        //清理路径为:   清理用户指定目录下的最大文件,节省磁盘空间。
87
 
        mainModel.append({"itemTitle": qsTr("Cleanup path is:")  + root.directory,
 
88
        mainModel.append({"mstatus": root.check_flag ? "true": "false",
 
89
                          "itemTitle": qsTr("Cleanup path is:")  + root.directory,
88
90
                         "picture": "../../img/toolWidget/deb-min.png",
89
91
                         "detailstr": qsTr("cleaning up the maximum files in user-specified directory, to save disk space.")})
90
92
    }
210
212
            text: qsTr("Begin cleanup")//开始清理
211
213
            anchors.verticalCenter: parent.verticalCenter
212
214
            onClicked: {
213
 
                if(root.check_flag) {
 
215
//                if(root.check_flag) {
 
216
                if(root.lar_num > 0) {
214
217
                    if(size_text.text == "" || size_text.text == 0)
215
218
                        //友情提示:        对不起,您没有设置扫描文件的大小或者设置值为 0,请重新输入文件大小!
216
219
                        sessiondispatcher.showWarningDialog(qsTr("Tips:"),qsTr("Sorry, You haven't set the file size or the value is 0, please input the file sizes !"), mainwindow.pos.x, mainwindow.pos.y);
261
264
        anchors.top: titlebar.bottom
262
265
        anchors.topMargin: 30
263
266
        anchors.left:parent.left
264
 
        anchors.leftMargin: 27
 
267
//        anchors.leftMargin: 27
265
268
        height: root.height -titlebar.height - 37
266
 
        width: parent.width - 27 -2
 
269
        width: parent.width -2
 
270
//        width: parent.width - 27 -2
267
271
        Item {
268
272
            width: parent.width
269
 
            height: (root.sub_num + 1) * 40
 
273
            height: (root.sub_num + 1) * 30 + 30
270
274
            //垃圾清理显示内容
271
275
            ListView {
272
276
                id: listView
279
283
                    arrow_display: root.deleget_arrow
280
284
                    delegate_flag: false
281
285
//                    main_check_value: root.yesOrno
282
 
                    onSubpressed: { root.sub_num = hMark }
283
 
                    onCheckchanged: { root.check_flag = checkchange }
 
286
                    onSubpressed: {
 
287
                        root.sub_num = hMark;
 
288
                    }
 
289
                    onCheckchanged: {
 
290
                        root.check_flag = checkchange;
 
291
                    }
284
292
                }
285
293
                cacheBuffer: 1000
286
294
                opacity: 1
287
 
                spacing: 10
 
295
//                spacing: 10
288
296
                snapMode: ListView.NoSnap
289
297
                boundsBehavior: Flickable.DragOverBounds
290
298
                currentIndex: 0