msgBox.setText(QString("The C code / headers have been generated in folder\n%1").arg(m_ui->outputDirNameLabel->text().trimmed()));
msgBox.exec();
}
else
{
}else{
QMessageBox::critical(this,tr("C code generation failed, please see the compile log for further information"),QString("The C code / headers could not be written to folder\n%1").arg(m_ui->outputDirNameLabel->text().trimmed()),QMessageBox::Ok);