From e24ec79d158d336c7547f83f8486e2d5f031464e Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 5 Jul 2018 15:37:44 +0200 Subject: Show buttons when focusing entry but avoid tab focus. If we're going to allow tab focus then we'll need some other adjustments (right now we'd end up focusing invisible stuff sometimes). --- framework/qml/MailListView.qml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml index 55c229db..7e6f584d 100644 --- a/framework/qml/MailListView.qml +++ b/framework/qml/MailListView.qml @@ -248,7 +248,7 @@ FocusScope { right: parent.right bottom: parent.bottom } - visible: !delegateRoot.hovered + visible: !delegateRoot.focused text: Qt.formatDateTime(model.date, "dd MMM yyyy") font.italic: true color: delegateRoot.disabledTextColor @@ -273,7 +273,7 @@ FocusScope { margins: Kube.Units.smallSpacing } - visible: delegateRoot.hovered && !mouseArea.drag.active + visible: delegateRoot.focused && !mouseArea.drag.active spacing: Kube.Units.smallSpacing opacity: 0.7 @@ -283,7 +283,6 @@ FocusScope { iconName: Kube.Icons.markAsRead visible: model.unread onClicked: Kube.Fabric.postMessage(Kube.Messages.markAsRead, {"mail": model.mail}) - activeFocusOnTab: false tooltip: qsTr("Mark as read") } Kube.IconButton { -- cgit v1.2.3