You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

31 lines
638 B

import QtQuick 2.2
Item {
id: contractLibrary
property alias model: contractListModel;
Connections {
target: appContext
Component.onCompleted: {
//TODO: load a list, dependencies, ets, from external files
var configSource = fileIo.readFile("qrc:///stdc/config.sol");
var nameRegSource = fileIo.readFile("qrc:///stdc/namereg.sol");
contractListModel.append({
name: "Config",
url: "qrc:///stdc/config.sol",
source: configSource
});
contractListModel.append({
name: "NameReg",
url: "qrc:///stdc/namereg.sol",
source: nameRegSource
});
}
}
ListModel {
id: contractListModel
}
}