added previews next

This commit is contained in:
Jeena 2015-02-03 19:50:05 +01:00
parent ee6ba89ab4
commit 218f556a98
6 changed files with 40 additions and 15 deletions

View file

@ -9,9 +9,22 @@ ScrollView {
property Server server
property Content content
function next() {
if(listView.count > listView.currentIndex) {
listView.currentIndex++;
}
}
function previous() {
if(listView.currentIndex > 0) {
listView.currentIndex--;
}
}
Layout.minimumWidth: 400
ListView {
id: listView
focus: true
anchors.fill: parent