summaryrefslogtreecommitdiffstats
path: root/framework/qml
diff options
context:
space:
mode:
Diffstat (limited to 'framework/qml')
-rw-r--r--framework/qml/ListDelegate.qml5
-rw-r--r--framework/qml/MailListView.qml2
2 files changed, 5 insertions, 2 deletions
diff --git a/framework/qml/ListDelegate.qml b/framework/qml/ListDelegate.qml
index fd654e4c..6d6a5d08 100644
--- a/framework/qml/ListDelegate.qml
+++ b/framework/qml/ListDelegate.qml
@@ -33,6 +33,11 @@ T.ItemDelegate {
33 hoverEnabled: true 33 hoverEnabled: true
34 highlighted: ListView.isCurrentItem 34 highlighted: ListView.isCurrentItem
35 35
36 onClicked: {
37 ListView.view.currentIndex = index
38 ListView.view.forceActiveFocus()
39 }
40
36 background: Kube.DelegateBackground { 41 background: Kube.DelegateBackground {
37 id: background 42 id: background
38 border.color: Kube.Colors.buttonColor 43 border.color: Kube.Colors.buttonColor
diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml
index 9de30313..d4e0672b 100644
--- a/framework/qml/MailListView.qml
+++ b/framework/qml/MailListView.qml
@@ -107,8 +107,6 @@ FocusScope {
107 //Required for D&D 107 //Required for D&D
108 property var mail: model.mail 108 property var mail: model.mail
109 109
110 onClicked: ListView.view.currentIndex = index
111
112 width: scrollbar.visible ? listView.width - scrollbar.width : listView.width 110 width: scrollbar.visible ? listView.width - scrollbar.width : listView.width
113 height: Kube.Units.gridUnit * 5 111 height: Kube.Units.gridUnit * 5
114 112