[Companion] Horus support started

We only have the model name of the 1st model, but that's a good start ;)
This commit is contained in:
Bertrand Songis
2016-11-20 22:49:26 +01:00
parent d42fc6c471
commit ecb5416057
4 changed files with 17 additions and 8 deletions
+6 -2
View File
@@ -387,19 +387,23 @@ bool MdiChild::loadOtxFile(const QString &fileName, bool resetCurrentFile)
// info about all models
QList<QString> models = storage.getModelsFileNames();
qDebug() << "We have" << models.size() << "models:";
#if 0
foreach(QString filename, models) {
QList<ModelFile>::const_iterator i = storage.getModelIterator(filename);
if (i != storage.models.end()) {
qDebug() << "\tModel:" << i->filename << "size" << i->data.size();
}
}
#endif
for (QList<ModelFile>::iterator i = storage.models.begin(); i != storage.models.end(); ++i) {
GetEepromInterface()->loadModelFromByteArray(radioData.models[0], i->data);
}
ui->modelsList->refreshList();
// for test immediately save to another file
storage.write(fileName + "test.otx");
// storage.write(fileName + "test.otx");
return true;
}