Changeset View
Changeset View
Standalone View
Standalone View
mobile/app/package/contents/ui/Thumbnails.qml
Show All 22 Lines | |||||
23 | 23 | | |||
24 | ThumbnailsBase { | 24 | ThumbnailsBase { | ||
25 | id: root | 25 | id: root | ||
26 | model: documentItem.matchingPages | 26 | model: documentItem.matchingPages | ||
27 | 27 | | |||
28 | QQC2.ToolBar { | 28 | QQC2.ToolBar { | ||
29 | id: toolBarContent | 29 | id: toolBarContent | ||
30 | width: root.width | 30 | width: root.width | ||
31 | height: searchField.height | 31 | contentItem: QQC2.TextField { | ||
32 | QQC2.TextField { | | |||
33 | id: searchField | 32 | id: searchField | ||
34 | anchors.fill: parent | 33 | placeholderText: i18n("Search in document…") | ||
ngraham: Placeholder text should just be "Search..."
Use three dots instead of the ellipsis character | |||||
35 | enabled: documentItem ? documentItem.supportsSearching : false | 34 | enabled: documentItem ? documentItem.supportsSearching : false | ||
36 | onTextChanged: { | 35 | onTextChanged: { | ||
37 | if (text.length > 2) { | 36 | if (text.length > 2) { | ||
38 | documentItem.searchText(text); | 37 | documentItem.searchText(text); | ||
39 | } else { | 38 | } else { | ||
40 | documentItem.resetSearch(); | 39 | documentItem.resetSearch(); | ||
41 | } | 40 | } | ||
42 | } | 41 | } | ||
43 | } | 42 | } | ||
44 | } | 43 | } | ||
45 | } | 44 | } |
Placeholder text should just be "Search..."
Use three dots instead of the ellipsis character