~qqworini/aesydict/online-improve

« back to all changes in this revision

Viewing changes to app/search/PageSearch.qml

  • Committer: Joey Chan
  • Date: 2015-04-17 07:33:24 UTC
  • Revision ID: qqworini@gmail.com-20150417073324-q813re4wpnzin4lx
main functions completed

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
                }
21
21
                ,
22
22
                Action {
23
 
                    iconName: "attachment"
 
23
                    iconName: "settings"
24
24
                    onTriggered: {
25
 
                        mainStack.push(Qt.resolvedUrl("../dict/PageDictCenter.qml"))
 
25
                        mainStack.push(Qt.resolvedUrl("../dict/PageDictCenter.qml"), {pushOwner: pageSearch })
26
26
                    }
27
27
                }
28
28
            ]
31
31
            id: headerState
32
32
            name: "search"
33
33
            head: pageSearch.head
34
 
            actions: [
35
 
                Action {
36
 
                    id: acSearchStart
37
 
                    iconName: "search"
38
 
                    onTriggered: {
39
 
                        // TODO  start search session
40
 
                    }
41
 
                }
42
 
            ]
 
34
//            actions: [
 
35
//                Action {
 
36
//                    id: acSearchStart
 
37
//                    iconName: "search"
 
38
//                    onTriggered: {
 
39
//                        // TODO  start search session
 
40
//                    }
 
41
//                }
 
42
//            ]
43
43
            backAction: Action {
44
44
                id: acleaveSearch
45
45
                text: i18n.tr("back")
101
101
            addResultToList(wordList, dictName)
102
102
        }
103
103
 
104
 
//        onGetWordDetailResult: {
105
 
//            console.log("qml, word detail: ", JSON.stringify(wordDetail))
106
 
//        }
 
104
    }
 
105
 
 
106
    function clearSearchResult() {
 
107
        for (var i=0; i<dictArray.length; i++) {
 
108
            dictArray[i].destroy()
 
109
        }
 
110
        dictArray = []
107
111
    }
108
112
 
109
113
    Flickable {