Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/package/contents/ui/DashboardRepresentation.qml
Show First 20 Lines • Show All 296 Lines • ▼ Show 20 Line(s) | 287 | TextEdit { | |||
---|---|---|---|---|---|
297 | wrapMode: Text.NoWrap | 297 | wrapMode: Text.NoWrap | ||
298 | opacity: 1.0 | 298 | opacity: 1.0 | ||
299 | 299 | | |||
300 | selectByMouse: false | 300 | selectByMouse: false | ||
301 | cursorVisible: false | 301 | cursorVisible: false | ||
302 | 302 | | |||
303 | color: "white" | 303 | color: "white" | ||
304 | 304 | | |||
305 | text: searching ? i18n("Searching for '%1'", searchField.text) : i18n("Type to search.") | 305 | text: searching ? i18n("Searching for '%1'", searchField.text) : i18n("Type to search...") | ||
306 | 306 | | |||
307 | function updateSelection() { | 307 | function updateSelection() { | ||
308 | if (!searchField.selectedText) { | 308 | if (!searchField.selectedText) { | ||
309 | return; | 309 | return; | ||
310 | } | 310 | } | ||
311 | 311 | | |||
312 | var delta = text.lastIndexOf(searchField.text, text.length - 2); | 312 | var delta = text.lastIndexOf(searchField.text, text.length - 2); | ||
313 | searchHeading.select(searchField.selectionStart + delta, searchField.selectionEnd + delta); | 313 | searchHeading.select(searchField.selectionStart + delta, searchField.selectionEnd + delta); | ||
▲ Show 20 Lines • Show All 770 Lines • Show Last 20 Lines |