You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1003 B
36 lines
1003 B
/* |
|
SPDX-FileCopyrightText: 2012 Marco Martin <mart@kde.org> |
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later |
|
*/ |
|
|
|
import QtQuick 2.15 |
|
import QtQuick.Layouts 1.15 |
|
import QtQuick.Controls 2.15 as QQC2 |
|
import org.kde.kirigami 2.17 as Kirigami |
|
|
|
ThumbnailsBase { |
|
id: root |
|
model: documentItem.matchingPages |
|
|
|
header: Kirigami.AbstractApplicationHeader { |
|
topPadding: Kirigami.Units.smallSpacing / 2; |
|
bottomPadding: Kirigami.Units.smallSpacing / 2; |
|
rightPadding: Kirigami.Units.smallSpacing |
|
leftPadding: Kirigami.Units.smallSpacing |
|
|
|
width: root.width |
|
Kirigami.SearchField { |
|
id: searchField |
|
width: parent.width |
|
enabled: documentItem ? documentItem.supportsSearching : false |
|
onTextChanged: { |
|
if (text.length > 2) { |
|
documentItem.searchText(text); |
|
} else { |
|
documentItem.resetSearch(); |
|
} |
|
} |
|
} |
|
} |
|
}
|
|
|