Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/ApplicationsListPage.qml
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | 53 | function escapeHtml(unsafe) { | |||
---|---|---|---|---|---|
54 | return unsafe | 54 | return unsafe | ||
55 | .replace(/&/g, "&") | 55 | .replace(/&/g, "&") | ||
56 | .replace(/</g, "<") | 56 | .replace(/</g, "<") | ||
57 | .replace(/>/g, ">") | 57 | .replace(/>/g, ">") | ||
58 | .replace(/"/g, """) | 58 | .replace(/"/g, """) | ||
59 | .replace(/'/g, "'"); | 59 | .replace(/'/g, "'"); | ||
60 | } | 60 | } | ||
61 | 61 | | |||
62 | background: Rectangle { | ||||
63 | color: Kirigami.Theme.backgroundColor | ||||
64 | Kirigami.Theme.colorSet: Kirigami.Theme.Window | ||||
65 | Kirigami.Theme.inherit: false | ||||
66 | } | ||||
67 | | ||||
62 | title: search.length>0 ? i18n("Search: %1", escapeHtml(search)) | 68 | title: search.length>0 ? i18n("Search: %1", escapeHtml(search)) | ||
63 | : category ? category.name : "" | 69 | : category ? category.name : "" | ||
64 | 70 | | |||
65 | signal clearSearch() | 71 | signal clearSearch() | ||
66 | 72 | | |||
67 | supportsRefreshing: true | 73 | supportsRefreshing: true | ||
68 | onRefreshingChanged: if (refreshing) { | 74 | onRefreshingChanged: if (refreshing) { | ||
69 | appsModel.invalidateFilter() | 75 | appsModel.invalidateFilter() | ||
▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines |