Commit bf0abd8c authored by Libor Tomsik's avatar Libor Tomsik Committed by Tobias Hunger
Browse files

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: default avatarOrgad Shaneh <orgads@gmail.com>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 831701bb
...@@ -297,14 +297,15 @@ void LibraryWizardDialog::setupFilesPage() ...@@ -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;
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment