QML UI: Parse multiple buddies when editing a dive

This allows the user to enter multiple buddies as a comma separated list,
the "Multiple Buddies" entry is still a special case as we can only populate
the combobox with a single name for each entry.

fixes #168

Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
jbygdell 2017-01-29 17:32:13 +01:00 committed by Dirk Hohndel
parent f5a4838519
commit 0e57033042
2 changed files with 5 additions and 8 deletions

View file

@ -177,7 +177,7 @@ Item {
}
ComboBox {
id: buddyBox
editable: currentText != qsTr("Multiple Buddies")
editable: true
model: diveDetailsListView.currentItem.modelData.dive.buddyList
inputMethodHints: Qt.ImhNoPredictiveText
Layout.fillWidth: true