summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui/MailListView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/package/contents/ui/MailListView.qml')
-rw-r--r--components/package/contents/ui/MailListView.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/package/contents/ui/MailListView.qml b/components/package/contents/ui/MailListView.qml
index 63d285e8..a26dcc2b 100644
--- a/components/package/contents/ui/MailListView.qml
+++ b/components/package/contents/ui/MailListView.qml
@@ -141,6 +141,8 @@ Item {
141 Item { 141 Item {
142 id: delegateRoot 142 id: delegateRoot
143 143
144 property variant mail : model.domainObject
145
144 width: scrollbar.visible ? listView.width - scrollbar.width : listView.width 146 width: scrollbar.visible ? listView.width - scrollbar.width : listView.width
145 height: Kirigami.Units.gridUnit * 5 147 height: Kirigami.Units.gridUnit * 5
146 148
@@ -185,6 +187,7 @@ Item {
185 Drag.active: mouseArea.drag.active 187 Drag.active: mouseArea.drag.active
186 Drag.hotSpot.x: mouseArea.mouseX 188 Drag.hotSpot.x: mouseArea.mouseX
187 Drag.hotSpot.y: mouseArea.mouseY 189 Drag.hotSpot.y: mouseArea.mouseY
190 Drag.source: delegateRoot
188 191
189 MouseArea { 192 MouseArea {
190 id: mouseArea 193 id: mouseArea
@@ -197,6 +200,7 @@ Item {
197 onClicked: { 200 onClicked: {
198 listView.currentIndex = index 201 listView.currentIndex = index
199 } 202 }
203 onReleased: parent.Drag.drop()
200 } 204 }
201 205
202 Rectangle { 206 Rectangle {