added previews next
This commit is contained in:
parent
ee6ba89ab4
commit
218f556a98
6 changed files with 40 additions and 15 deletions
13
Sidebar.qml
13
Sidebar.qml
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue