From a7de3f785c50e994da797606e81ffe67b2ef2659 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Mon, 25 Apr 2016 14:03:44 +0200 Subject: restore currentMail property binding --- components/package/contents/ui/MailListView.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'components/package') 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 @@ import QtQuick 2.4 import QtQuick.Controls 1.4 as Controls import QtQuick.Layouts 1.1 +import QtQml 2.2 as QtQml import org.kde.kirigami 1.0 as Kirigami @@ -55,7 +56,6 @@ Controls.ScrollView { checked: listView.currentIndex == index onClicked: { listView.currentIndex = model.index - root.currentMail = model.domainObject } //Content @@ -63,6 +63,13 @@ Controls.ScrollView { width: parent.width height: Kirigami.Units.gridUnit * 4 + QtQml.Binding { + target: root + property: "currentMail" + when: listView.currentIndex == index + value: model.domainObject + } + RowLayout { anchors { -- cgit v1.2.3