~fuchsi585/diabetes-diary-app/0.2

« back to all changes in this revision

Viewing changes to app/Diary/DiaryPage.qml

  • Committer: fuchsi585
  • Date: 2016-02-04 20:00:20 UTC
  • Revision ID: ro.fuchs585@googlemail.com-20160204200020-cgu5y6c2nztq3j7n
modified favorite food page

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
            }
41
41
        },
42
42
        PageHeadState {
43
 
            id: headerState
44
43
            name: "search"
45
44
            head: diaryPage.head
46
45
            backAction: Action {
47
 
                id: leaveSearchAction
48
46
                text: "back"
49
47
                iconName: "back"
50
48
                onTriggered: {
51
 
                    entries.setFilterFixedString("");
52
49
                    searchText.text = "";
53
50
                    diaryPage.state = "default"
54
51
                }
63
60
                    name: "search"
64
61
                }
65
62
                width: parent ? (parent.width - units.gu(2)) : undefined
66
 
                onTextChanged: {
67
 
                    entries.setFilterFixedString(text)
68
 
                }
 
63
                onTextChanged: entries.setFilterFixedString(text)
69
64
                onVisibleChanged: forceActiveFocus()
70
65
            }
71
66
        }