mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-03 22:54:31 +00:00
da6549b1df
Also, make those tests actually work again.
38 lines
717 B
QML
38 lines
717 B
QML
/*
|
|
SPDX-FileCopyrightText: 2012 Marco Martin <mart@kde.org>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
import org.kde.okular 2.0 as Okular
|
|
|
|
Item {
|
|
width: 500
|
|
height: 600
|
|
Okular.DocumentItem {
|
|
id: docItem
|
|
url: "pageitem.cpp"
|
|
}
|
|
Okular.PageItem {
|
|
id: page
|
|
anchors.fill: parent
|
|
document: docItem
|
|
}
|
|
Row {
|
|
anchors {
|
|
bottom: parent.bottom
|
|
right: parent.right
|
|
}
|
|
Button {
|
|
text: "prev"
|
|
onClicked: page.pageNumber--
|
|
}
|
|
Button {
|
|
text: "next"
|
|
onClicked: page.pageNumber++
|
|
}
|
|
}
|
|
}
|