Component.onCompleted: {
for(var j = 0; j < uiList.count();++j ) {
- var data = {'name':uiList.get(j).name,'file':uiList.get(j).file };
+ var data = {'text':uiList.get(j).name,'name':uiList.get(j).name,'file':uiList.get(j).file };
// var data = {'name':uiList.get(j).name };
console.debug("appending ",uiList.get(j).name,uiList.get(j).file);
choices.append(data);
ListModel {
id: choices
- ListElement { text: "MeeGo/Harmattan";file:"ardrone_harmattan.qml" }
- ListElement { text: "Symbian";file:"ardrone_symbian.qml" }
- ListElement { text: "Desktop";file:"ardrone_desktop.qml" }
}
ComboBox {
id: activeUICombo;
width:200
- model:uiList
+ model:choices
onSelectedIndexChanged: {
console.debug("onSelectedIndexChanged " + selectedText + ", " + model.get(selectedIndex).file);
drone.confActiveUI=model.get(selectedIndex).file