New plce holder function in eeprominterface for importing wizard data. Need help from Bertrand since the format of the real mixes is mysterious.

This commit is contained in:
Kjell Kernen
2014-03-04 13:36:01 +01:00
parent 11565e05e9
commit b133a990f1
7 changed files with 121 additions and 87 deletions
+1 -9
View File
@@ -189,15 +189,7 @@ void MdiChild::wizardEdit()
wizard->exec();
if (wizard->mix.complete){
ModelData &model = radioData.models[row - 1];
// Remove dicritics and filter off anything but chars from the new model name
QString newName(wizard->mix.name.normalized(QString::NormalizationForm_D));
newName = newName.replace(QRegExp("[^a-zA-Z\\s]"), "");
strncpy(model.name, newName.toAscii(), sizeof(model.name));
model.name[sizeof(model.name)-1]=0;
//TODO Save the rest of the wizard->mix data to model.
model.importWizardData(row - 1, wizard->mix);
setModified();
}
}