diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-07-05 15:37:44 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-07-05 15:37:44 +0200 |
commit | e24ec79d158d336c7547f83f8486e2d5f031464e (patch) | |
tree | 42e9d438c3b86c3722ff2b2a5876ff56e50dc4b0 /framework | |
parent | f33a17669bc38bb62ebef0ac0a64bd2f5ed683c0 (diff) | |
download | kube-e24ec79d158d336c7547f83f8486e2d5f031464e.tar.gz kube-e24ec79d158d336c7547f83f8486e2d5f031464e.zip |
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).
Diffstat (limited to 'framework')
-rw-r--r-- | framework/qml/MailListView.qml | 5 |
1 files 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 { | |||
248 | right: parent.right | 248 | right: parent.right |
249 | bottom: parent.bottom | 249 | bottom: parent.bottom |
250 | } | 250 | } |
251 | visible: !delegateRoot.hovered | 251 | visible: !delegateRoot.focused |
252 | text: Qt.formatDateTime(model.date, "dd MMM yyyy") | 252 | text: Qt.formatDateTime(model.date, "dd MMM yyyy") |
253 | font.italic: true | 253 | font.italic: true |
254 | color: delegateRoot.disabledTextColor | 254 | color: delegateRoot.disabledTextColor |
@@ -273,7 +273,7 @@ FocusScope { | |||
273 | margins: Kube.Units.smallSpacing | 273 | margins: Kube.Units.smallSpacing |
274 | } | 274 | } |
275 | 275 | ||
276 | visible: delegateRoot.hovered && !mouseArea.drag.active | 276 | visible: delegateRoot.focused && !mouseArea.drag.active |
277 | 277 | ||
278 | spacing: Kube.Units.smallSpacing | 278 | spacing: Kube.Units.smallSpacing |
279 | opacity: 0.7 | 279 | opacity: 0.7 |
@@ -283,7 +283,6 @@ FocusScope { | |||
283 | iconName: Kube.Icons.markAsRead | 283 | iconName: Kube.Icons.markAsRead |
284 | visible: model.unread | 284 | visible: model.unread |
285 | onClicked: Kube.Fabric.postMessage(Kube.Messages.markAsRead, {"mail": model.mail}) | 285 | onClicked: Kube.Fabric.postMessage(Kube.Messages.markAsRead, {"mail": model.mail}) |
286 | activeFocusOnTab: false | ||
287 | tooltip: qsTr("Mark as read") | 286 | tooltip: qsTr("Mark as read") |
288 | } | 287 | } |
289 | Kube.IconButton { | 288 | Kube.IconButton { |