Keeping entered values in C++ Library Wizard

Adding check if values in C++ Library Wizard - Class Information
were already entered to keep them preserved when going back in
the wizard.

Change-Id: Ia1f65b8fd338b8e783f0d032574b9526befcc1a3
Task-number: QTCREATORBUG-12185
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Libor Tomsik
2015-03-01 20:12:41 +01:00
committed by Tobias Hunger
parent 831701bb67
commit bf0abd8cb1

View File

@@ -297,14 +297,15 @@ void LibraryWizardDialog::setupFilesPage()
}
m_filesPage->setBaseClassInputVisible(true);
break;
default: {
// Urrm, figure out a good class name. Use project name this time
QString className = projectName();
if (!className.isEmpty())
className[0] = className.at(0).toUpper();
m_filesPage->setClassName(className);
m_filesPage->setBaseClassInputVisible(false);
}
default:
if (!m_filesPage->isComplete()) {
// Urrm, figure out a good class name. Use project name this time
QString className = projectName();
if (!className.isEmpty())
className[0] = className.at(0).toUpper();
m_filesPage->setClassName(className);
m_filesPage->setBaseClassInputVisible(false);
}
break;
}
}