Warning, /graphics/okular/mobile/app/package/contents/ui/Thumbnails.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2012 Marco Martin <mart@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 2.15 0008 import QtQuick.Layouts 1.15 0009 import QtQuick.Controls 2.15 as QQC2 0010 import org.kde.kirigami 2.17 as Kirigami 0011 0012 ThumbnailsBase { 0013 id: root 0014 model: documentItem.matchingPages 0015 0016 header: Kirigami.AbstractApplicationHeader { 0017 topPadding: Kirigami.Units.smallSpacing / 2; 0018 bottomPadding: Kirigami.Units.smallSpacing / 2; 0019 rightPadding: Kirigami.Units.smallSpacing 0020 leftPadding: Kirigami.Units.smallSpacing 0021 0022 width: root.width 0023 Kirigami.SearchField { 0024 id: searchField 0025 width: parent.width 0026 enabled: documentItem ? documentItem.supportsSearching : false 0027 onTextChanged: { 0028 if (text.length > 2) { 0029 documentItem.searchText(text); 0030 } else { 0031 documentItem.resetSearch(); 0032 } 0033 } 0034 } 0035 } 0036 }