okular/mobile/components/test.qml
Volker Krause da6549b1df Port tests away from QQC1
Also, make those tests actually work again.
2022-08-05 16:12:02 +02:00

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++
}
}
}