+ Component.onCompleted: {
+ console.debug("Appending items to choices",uiList.count())
+ for(var j = 0; j < uiList.count();++j ) {
+ var data = {'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);
+ if(uiList.get(j).file==drone.confActiveUI) activeUIDialog.selectedIndex=j;
+ }
+ }
+
+ ListModel {
+ id: choices
+ ListElement {
+ name:"none";
+ file:"none.qml"
+ }
+ }
+ SelectionDialog {
+ id: activeUIDialog;
+ model:choices
+ onSelectedIndexChanged: {
+ console.debug("onSelectedIndexChanged " + model.get(selectedIndex).name + ", " + model.get(selectedIndex).file);
+ drone.confActiveUI=choices.get(selectedIndex).file
+ }
+
+ }