[PATCH 3/3] QML UI: hide handles for comboboxes

Joakim Bygdell j.bygdell at gmail.com
Mon May 16 10:59:06 PDT 2016


Hide the handles for the comboboxes, making the text input fields
look like the normal text fields.
This is left as a separate patch as there currently seems to be issues with autocomplete
on Android.

Signed-off-by: Joakim Bygdell <j.bygdell at gmail.com>
---
 mobile-widgets/qml/DiveDetailsEdit.qml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml
index 9986d23..5b582d1 100644
--- a/mobile-widgets/qml/DiveDetailsEdit.qml
+++ b/mobile-widgets/qml/DiveDetailsEdit.qml
@@ -160,6 +160,9 @@ Item {
 				model: diveDetailsListView.currentItem.modelData.dive.suitList
 				inputMethodHints: Qt.ImhNoPredictiveText
 				Layout.fillWidth: true
+				style: ComboBoxStyle {
+					dropDownButtonWidth: 0
+				}
 			}
 
 			Kirigami.Label {
@@ -172,6 +175,9 @@ Item {
 				model: diveDetailsListView.currentItem.modelData.dive.buddyList
 				inputMethodHints: Qt.ImhNoPredictiveText
 				Layout.fillWidth: true
+				style: ComboBoxStyle {
+					dropDownButtonWidth: 0
+				}
 			}
 
 			Kirigami.Label {
@@ -184,6 +190,9 @@ Item {
 				model: diveDetailsListView.currentItem.modelData.dive.divemasterList
 				inputMethodHints: Qt.ImhNoPredictiveText
 				Layout.fillWidth: true
+				style: ComboBoxStyle {
+					dropDownButtonWidth: 0
+				}
 			}
 
 			Kirigami.Label {
-- 
2.5.4 (Apple Git-61)



More information about the subsurface mailing list