From 04458495ac32a86b8856b6a5b6e3da37bfff820f Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 27 Jul 2017 12:49:26 +0200 Subject: add checkbox to MailListView in preparation for batch editing --- framework/qml/MailListView.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'framework/qml') diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml index fe041d58..4cd4a19f 100644 --- a/framework/qml/MailListView.qml +++ b/framework/qml/MailListView.qml @@ -149,11 +149,18 @@ FocusScope { } property color unreadColor: (model.unread && !delegateRoot.highlighted) ? Kube.Colors.highlightColor : delegateRoot.textColor + Kube.CheckBox { + id: checkBox + + anchors.verticalCenter: parent.verticalCenter + visible: (checked || delegateRoot.hovered) && !mouseArea.drag.active + } + Column { anchors { verticalCenter: parent.verticalCenter left: parent.left - leftMargin: Kube.Units.largeSpacing + leftMargin: checkBox.width + Kube.Units.smallSpacing } Kube.Label{ -- cgit v1.2.3