- id: lineSelector
- titleText: 'Select line'
-
- model: ListModel {
- id: lineSelectorModel
-
- Component.onCompleted: {
- var lines = itip.get_lines()
-
- for (var idx in lines) {
- lineSelectorModel.append({'name': lines[idx]})
- }
- }
- }
-
- // XXX It would be nice if we could make a delegate with
- // icons (i.e. U1, U2, ... in the right colors), but we
- // would have to "copy" the default delegate style
-
- onAccepted: {
- console.log('accepted: ' + selectedIndex)
- gline.text = lineSelectorModel.get(selectedIndex).name
- }
- }
-
- SelectionDialog {