From b659b06ec76e9ff84e5bf3c84f04caf0799e21ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonah=20Br=C3=BCchert?= Date: Sat, 10 Aug 2019 10:24:08 +0200 Subject: [PATCH] mobile: app: Fix TableOfContents Summary: - Correct QQC2 import - Apply search field changes from Thumbnails here as well Test Plan: - Open https://openboard.ch/download/Tutoriel_OpenBoard_1.5EN.pdf with okularkirigami - open the context drawer - switch to the "Table of Contents" tab - the ToC should load successfully Reviewers: #okular, bshah Reviewed By: bshah Subscribers: bshah, okular-devel Tags: #okular Differential Revision: https://phabricator.kde.org/D23066 --- mobile/app/package/contents/ui/TableOfContents.qml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/mobile/app/package/contents/ui/TableOfContents.qml b/mobile/app/package/contents/ui/TableOfContents.qml index f46bb6e04..2f75b3eb8 100644 --- a/mobile/app/package/contents/ui/TableOfContents.qml +++ b/mobile/app/package/contents/ui/TableOfContents.qml @@ -18,7 +18,7 @@ */ import QtQuick 2.1 -import QtQuick.Controls 2.0 as QQC2 +import QtQuick.Controls 2.2 as QQC2 import org.kde.kirigami 2.0 as Kirigami Kirigami.Page { @@ -27,16 +27,15 @@ Kirigami.Page { topPadding: 0 rightPadding: 0 bottomPadding: 0 - property alias contentY: flickable.contentY - property alias contentHeight: flickable.contentHeight + property alias tocContentY: flickable.contentY + property alias tocContentHeight: flickable.contentHeight QQC2.ToolBar { id: toolBarContent width: root.width - height: searchField.height - TextField { + contentItem: QQC2.TextField { id: searchField - anchors.centerIn: parent + placeholderText: i18n("Search...") } } QQC2.ScrollView {