diff options
Diffstat (limited to 'components/package/contents/ui/MailListView.qml')
-rw-r--r-- | components/package/contents/ui/MailListView.qml | 9 |
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 @@ | |||
18 | import QtQuick 2.4 | 18 | import QtQuick 2.4 |
19 | import QtQuick.Controls 1.4 as Controls | 19 | import QtQuick.Controls 1.4 as Controls |
20 | import QtQuick.Layouts 1.1 | 20 | import QtQuick.Layouts 1.1 |
21 | import QtQml 2.2 as QtQml | ||
21 | 22 | ||
22 | import org.kde.kirigami 1.0 as Kirigami | 23 | import 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 { |