forked from qt-creator/qt-creator
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:
committed by
Tobias Hunger
parent
831701bb67
commit
bf0abd8cb1
@@ -297,14 +297,15 @@ void LibraryWizardDialog::setupFilesPage()
|
|||||||
}
|
}
|
||||||
m_filesPage->setBaseClassInputVisible(true);
|
m_filesPage->setBaseClassInputVisible(true);
|
||||||
break;
|
break;
|
||||||
default: {
|
default:
|
||||||
// Urrm, figure out a good class name. Use project name this time
|
if (!m_filesPage->isComplete()) {
|
||||||
QString className = projectName();
|
// Urrm, figure out a good class name. Use project name this time
|
||||||
if (!className.isEmpty())
|
QString className = projectName();
|
||||||
className[0] = className.at(0).toUpper();
|
if (!className.isEmpty())
|
||||||
m_filesPage->setClassName(className);
|
className[0] = className.at(0).toUpper();
|
||||||
m_filesPage->setBaseClassInputVisible(false);
|
m_filesPage->setClassName(className);
|
||||||
}
|
m_filesPage->setBaseClassInputVisible(false);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user