diff options
Diffstat (limited to 'mobile-widgets/qml/TemplateComboBox.qml')
-rw-r--r-- | mobile-widgets/qml/TemplateComboBox.qml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mobile-widgets/qml/TemplateComboBox.qml b/mobile-widgets/qml/TemplateComboBox.qml index 3721aa77b..6ecf80bac 100644 --- a/mobile-widgets/qml/TemplateComboBox.qml +++ b/mobile-widgets/qml/TemplateComboBox.qml @@ -46,14 +46,16 @@ ComboBox { } } - contentItem: Text { + contentItem: TextField { + readOnly: !cb.editable + anchors.right: indicator.left + anchors.left: cb.left leftPadding: Kirigami.Units.smallSpacing - rightPadding: cb.indicator.width + cb.spacing + rightPadding: Kirigami.Units.smallSpacing text: cb.displayText font: cb.font color: subsurfaceTheme.textColor verticalAlignment: Text.AlignVCenter - elide: Text.ElideRight } background: Rectangle { @@ -61,6 +63,7 @@ ComboBox { border.width: cb.visualFocus ? 2 : 1 color: subsurfaceTheme.backgroundColor radius: 2 + visible: cb.focus } popup: Popup { |