summaryrefslogtreecommitdiffstats
path: root/components/package/contents
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2016-04-25 14:03:44 +0200
committerMichael Bohlender <michael.bohlender@kdemail.net>2016-04-25 14:03:44 +0200
commita7de3f785c50e994da797606e81ffe67b2ef2659 (patch)
tree3e18201a653d3f874dbc4fe9ec52f90f10da3170 /components/package/contents
parent01c9c6909e4409c74d7b88a2f8356c332bade653 (diff)
downloadkube-a7de3f785c50e994da797606e81ffe67b2ef2659.tar.gz
kube-a7de3f785c50e994da797606e81ffe67b2ef2659.zip
restore currentMail property binding
Diffstat (limited to 'components/package/contents')
-rw-r--r--components/package/contents/ui/MailListView.qml9
1 files changed, 8 insertions, 1 deletions
diff --git a/components/package/contents/ui/MailListView.qml b/components/package/contents/ui/MailListView.qml
index e716e984..12d6c705 100644
--- a/components/package/contents/ui/MailListView.qml
+++ b/components/package/contents/ui/MailListView.qml
@@ -18,6 +18,7 @@
18import QtQuick 2.4 18import QtQuick 2.4
19import QtQuick.Controls 1.4 as Controls 19import QtQuick.Controls 1.4 as Controls
20import QtQuick.Layouts 1.1 20import QtQuick.Layouts 1.1
21import QtQml 2.2 as QtQml
21 22
22import org.kde.kirigami 1.0 as Kirigami 23import org.kde.kirigami 1.0 as Kirigami
23 24
@@ -55,7 +56,6 @@ Controls.ScrollView {
55 checked: listView.currentIndex == index 56 checked: listView.currentIndex == index
56 onClicked: { 57 onClicked: {
57 listView.currentIndex = model.index 58 listView.currentIndex = model.index
58 root.currentMail = model.domainObject
59 } 59 }
60 60
61 //Content 61 //Content
@@ -63,6 +63,13 @@ Controls.ScrollView {
63 width: parent.width 63 width: parent.width
64 height: Kirigami.Units.gridUnit * 4 64 height: Kirigami.Units.gridUnit * 4
65 65
66 QtQml.Binding {
67 target: root
68 property: "currentMail"
69 when: listView.currentIndex == index
70 value: model.domainObject
71 }
72
66 RowLayout { 73 RowLayout {
67 74
68 anchors { 75 anchors {