summaryrefslogtreecommitdiffstats
path: root/views/inboxcrusher/qml/View.qml
diff options
context:
space:
mode:
Diffstat (limited to 'views/inboxcrusher/qml/View.qml')
-rw-r--r--views/inboxcrusher/qml/View.qml18
1 files changed, 14 insertions, 4 deletions
diff --git a/views/inboxcrusher/qml/View.qml b/views/inboxcrusher/qml/View.qml
index 7059a8eb..cb662c33 100644
--- a/views/inboxcrusher/qml/View.qml
+++ b/views/inboxcrusher/qml/View.qml
@@ -26,12 +26,10 @@ FocusScope {
26 property variant currentMail: null 26 property variant currentMail: null
27 27
28 Keys.onRightPressed: { 28 Keys.onRightPressed: {
29 modelIndexRetriever.currentIndex = modelIndexRetriever.currentIndex + 1 29 modelIndexRetriever.increaseCurrentIndex()
30 } 30 }
31 Keys.onLeftPressed: { 31 Keys.onLeftPressed: {
32 if (modelIndexRetriever.currentIndex > 0) { 32 modelIndexRetriever.decreaseCurrentIndex()
33 modelIndexRetriever.currentIndex = modelIndexRetriever.currentIndex - 1
34 }
35 } 33 }
36 Kube.ModelIndexRetriever { 34 Kube.ModelIndexRetriever {
37 id: modelIndexRetriever 35 id: modelIndexRetriever
@@ -97,6 +95,18 @@ FocusScope {
97 onClicked: { 95 onClicked: {
98 } 96 }
99 } 97 }
98 Kube.Button {
99 text: qsTr("Previous")
100 onClicked: {
101 modelIndexRetriever.decreaseCurrentIndex()
102 }
103 }
104 Kube.Button {
105 text: qsTr("Next")
106 onClicked: {
107 modelIndexRetriever.increaseCurrentIndex()
108 }
109 }
100 } 110 }
101 } 111 }
102} 112}