forked from qt-creator/qt-creator
Fix typo in PREFERED_PROJECT_MODE
Replace PREFERED_PROJECT_NODE with PREFERRED_PROJECT_NODE. This changes public API. The constant text does not seem to be stored on disk anywhere, though ... Change-Id: Id5393e597ed491b59075ff3687aaa4738fb3870c Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -2823,7 +2823,7 @@ void ProjectExplorerPlugin::addNewFile()
|
||||
QString location = directoryFor(d->m_currentNode);
|
||||
|
||||
QVariantMap map;
|
||||
map.insert(QLatin1String(Constants::PREFERED_PROJECT_NODE), QVariant::fromValue(d->m_currentNode));
|
||||
map.insert(QLatin1String(Constants::PREFERRED_PROJECT_NODE), QVariant::fromValue(d->m_currentNode));
|
||||
if (d->m_currentProject) {
|
||||
QList<Id> profileIds;
|
||||
foreach (Target *target, d->m_currentProject->targets())
|
||||
@@ -2845,7 +2845,7 @@ void ProjectExplorerPlugin::addNewSubproject()
|
||||
&& d->m_currentNode->supportedActions(
|
||||
d->m_currentNode).contains(ProjectExplorer::AddSubProject)) {
|
||||
QVariantMap map;
|
||||
map.insert(QLatin1String(Constants::PREFERED_PROJECT_NODE), QVariant::fromValue(d->m_currentNode));
|
||||
map.insert(QLatin1String(Constants::PREFERRED_PROJECT_NODE), QVariant::fromValue(d->m_currentNode));
|
||||
if (d->m_currentProject) {
|
||||
QList<Id> profileIds;
|
||||
foreach (Target *target, d->m_currentProject->targets())
|
||||
|
||||
@@ -205,7 +205,7 @@ const char IMPORT_WIZARD_CATEGORY[] = "T.Import";
|
||||
const char IMPORT_WIZARD_CATEGORY_DISPLAY[] = QT_TRANSLATE_NOOP("ProjectExplorer", "Import Project");
|
||||
|
||||
// Wizard extra values
|
||||
const char PREFERED_PROJECT_NODE[] = "ProjectExplorer.PreferedProjectNode";
|
||||
const char PREFERRED_PROJECT_NODE[] = "ProjectExplorer.PreferredProjectNode";
|
||||
const char PROJECT_KIT_IDS[] = "ProjectExplorer.Profile.Ids";
|
||||
|
||||
// Build step lists ids:
|
||||
|
||||
@@ -491,7 +491,7 @@ void ProjectFileWizardExtension::initProjectChoices(const QList<GeneratedFile> g
|
||||
|
||||
getProjectChoicesAndToolTips(&projectChoices, &projectToolTips, &projectAction,
|
||||
generatedFiles, m_context,
|
||||
extraValues.value(QLatin1String(Constants::PREFERED_PROJECT_NODE)).value<Node *>());
|
||||
extraValues.value(QLatin1String(Constants::PREFERRED_PROJECT_NODE)).value<Node *>());
|
||||
|
||||
m_context->page->setProjects(projectChoices);
|
||||
m_context->page->setProjectToolTips(projectToolTips);
|
||||
|
||||
@@ -101,7 +101,7 @@ Core::GeneratedFiles ClassWizard::generateFiles(const QWizard *w,
|
||||
|
||||
Kit *ClassWizard::kitForWizard(const ClassWizardDialog *wizard) const
|
||||
{
|
||||
const QString key = QLatin1String(ProjectExplorer::Constants::PREFERED_PROJECT_NODE);
|
||||
const QString key = QLatin1String(ProjectExplorer::Constants::PREFERRED_PROJECT_NODE);
|
||||
const QString nodePath = wizard->extraValues().value(key).toString();
|
||||
|
||||
// projectForFile doesn't find project if project file path passed
|
||||
|
||||
@@ -87,7 +87,7 @@ bool SubdirsProjectWizard::postGenerateFiles(const QWizard *w, const Core::Gener
|
||||
const QString projectPath = params.projectPath();
|
||||
const QString profileName = Core::BaseFileWizard::buildFileName(projectPath, params.fileName, profileSuffix());
|
||||
QVariantMap map;
|
||||
map.insert(QLatin1String(ProjectExplorer::Constants::PREFERED_PROJECT_NODE), profileName);
|
||||
map.insert(QLatin1String(ProjectExplorer::Constants::PREFERRED_PROJECT_NODE), profileName);
|
||||
map.insert(QLatin1String(ProjectExplorer::Constants::PROJECT_KIT_IDS), QVariant::fromValue(wizard->selectedKits()));
|
||||
Core::ICore::showNewItemDialog(tr("New Subproject", "Title of dialog"),
|
||||
Core::IWizard::wizardsOfKind(Core::IWizard::ProjectWizard),
|
||||
|
||||
Reference in New Issue
Block a user