diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-02 23:15:01 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-02 23:15:01 +0200 |
commit | 581b5a7f16a1c399958742a3b103f47ef9518662 (patch) | |
tree | cc7fa518f81d00522532b223e7373f2f04236f7e /framework/qml/ComboBox.qml | |
parent | 6aa6051a1535db4fea13bbde62e7701ecba583e9 (diff) | |
download | kube-581b5a7f16a1c399958742a3b103f47ef9518662.tar.gz kube-581b5a7f16a1c399958742a3b103f47ef9518662.zip |
Addressbook support for the contact composer
Diffstat (limited to 'framework/qml/ComboBox.qml')
-rw-r--r-- | framework/qml/ComboBox.qml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/framework/qml/ComboBox.qml b/framework/qml/ComboBox.qml index 71c9bcc3..64a1c7b3 100644 --- a/framework/qml/ComboBox.qml +++ b/framework/qml/ComboBox.qml | |||
@@ -32,6 +32,13 @@ T.ComboBox { | |||
32 | spacing: Kube.Units.largeSpacing | 32 | spacing: Kube.Units.largeSpacing |
33 | padding: Kube.Units.smallSpacing | 33 | padding: Kube.Units.smallSpacing |
34 | 34 | ||
35 | //Autoselect the first item | ||
36 | onCountChanged: { | ||
37 | if (currentIndex < 0) { | ||
38 | currentIndex = 0 | ||
39 | } | ||
40 | } | ||
41 | |||
35 | contentItem: Kube.Label { | 42 | contentItem: Kube.Label { |
36 | leftPadding: Kube.Units.smallSpacing | 43 | leftPadding: Kube.Units.smallSpacing |
37 | rightPadding: Kube.Units.largeSpacing | 44 | rightPadding: Kube.Units.largeSpacing |