Improve search field

Summary: Adds a placeholder text and uses contentItem

Reviewers: #okular, #plasma:_mobile, ngraham, apol

Reviewed By: #plasma:_mobile, ngraham, apol

Subscribers: ognarb, ngraham, okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D22903
remotes/origin/more-conventional-sidebar
Jonah Brüchert 7 years ago
parent cff01c1063
commit 230ae9affe
No known key found for this signature in database
GPG Key ID: A81E075ABEC80A7E
  1. 5
      mobile/app/package/contents/ui/Thumbnails.qml

@ -28,10 +28,9 @@ ThumbnailsBase {
QQC2.ToolBar { QQC2.ToolBar {
id: toolBarContent id: toolBarContent
width: root.width width: root.width
height: searchField.height contentItem: QQC2.TextField {
QQC2.TextField {
id: searchField id: searchField
anchors.fill: parent placeholderText: i18n("Search...")
enabled: documentItem ? documentItem.supportsSearching : false enabled: documentItem ? documentItem.supportsSearching : false
onTextChanged: { onTextChanged: {
if (text.length > 2) { if (text.length > 2) {

Loading…
Cancel
Save