From 230ae9affee55630923d30c23a59bbabe2e31e3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonah=20Br=C3=BCchert?= Date: Fri, 2 Aug 2019 23:14:49 +0200 Subject: [PATCH] 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 --- mobile/app/package/contents/ui/Thumbnails.qml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mobile/app/package/contents/ui/Thumbnails.qml b/mobile/app/package/contents/ui/Thumbnails.qml index e8e57df3e..8758634b6 100644 --- a/mobile/app/package/contents/ui/Thumbnails.qml +++ b/mobile/app/package/contents/ui/Thumbnails.qml @@ -28,10 +28,9 @@ ThumbnailsBase { QQC2.ToolBar { id: toolBarContent width: root.width - height: searchField.height - QQC2.TextField { + contentItem: QQC2.TextField { id: searchField - anchors.fill: parent + placeholderText: i18n("Search...") enabled: documentItem ? documentItem.supportsSearching : false onTextChanged: { if (text.length > 2) {