master
Jos van den Oever 2017-08-06 19:59:40 +02:00
parent 3124cdb1ae
commit 77a58075c2
2 changed files with 19 additions and 28 deletions

View File

@ -1,22 +1,22 @@
{ {
"cppfile": "src/tmp.cpp", "cppfile": "src/tmp.cpp",
"objects": [{ "objects": [{
"name": "Test", "name": "Test",
"properties": [{ "properties": [{
"name": "userName", "name": "userName",
"type": "QString", "type": "QString",
"write": true "write": true
}, { }, {
"name": "age", "name": "age",
"type": "int" "type": "int"
}, { }, {
"name": "active", "name": "active",
"type": "bool", "type": "bool",
"write": true "write": true
}, { }, {
"name": "misc", "name": "misc",
"type": "QVariant", "type": "QVariant",
"write": true "write": true
}]
}] }]
}]
} }

View File

@ -73,15 +73,6 @@ parseConfiguration(const QString& path) {
c.objects.append(parseObject(val.toObject())); c.objects.append(parseObject(val.toObject()));
} }
return c; return c;
/*
QTextStream in(&configurationFile);
in.setCodec("UTF-8");
configuration = in.readAll();
configurationFile.close();
} else {
return 1;
}
*/
} }
QString upperInitial(const QString& name) { QString upperInitial(const QString& name) {