Commit 2074b557 authored by Kai Koehne's avatar Kai Koehne
Browse files

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: default avatarDaniel Teske <daniel.teske@digia.com>
parent 868428cc
...@@ -2823,7 +2823,7 @@ void ProjectExplorerPlugin::addNewFile() ...@@ -2823,7 +2823,7 @@ void ProjectExplorerPlugin::addNewFile()
QString location = directoryFor(d->m_currentNode); QString location = directoryFor(d->m_currentNode);
QVariantMap map; 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) { if (d->m_currentProject) {
QList<Id> profileIds; QList<Id> profileIds;
foreach (Target *target, d->m_currentProject->targets()) foreach (Target *target, d->m_currentProject->targets())
...@@ -2845,7 +2845,7 @@ void ProjectExplorerPlugin::addNewSubproject() ...@@ -2845,7 +2845,7 @@ void ProjectExplorerPlugin::addNewSubproject()
&& d->m_currentNode->supportedActions( && d->m_currentNode->supportedActions(
d->m_currentNode).contains(ProjectExplorer::AddSubProject)) { d->m_currentNode).contains(ProjectExplorer::AddSubProject)) {
QVariantMap map; 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) { if (d->m_currentProject) {
QList<Id> profileIds; QList<Id> profileIds;
foreach (Target *target, d->m_currentProject->targets()) foreach (Target *target, d->m_currentProject->targets())
......
...@@ -205,7 +205,7 @@ const char IMPORT_WIZARD_CATEGORY[] = "T.Import"; ...@@ -205,7 +205,7 @@ const char IMPORT_WIZARD_CATEGORY[] = "T.Import";
const char IMPORT_WIZARD_CATEGORY_DISPLAY[] = QT_TRANSLATE_NOOP("ProjectExplorer", "Import Project"); const char IMPORT_WIZARD_CATEGORY_DISPLAY[] = QT_TRANSLATE_NOOP("ProjectExplorer", "Import Project");
// Wizard extra values // 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"; const char PROJECT_KIT_IDS[] = "ProjectExplorer.Profile.Ids";
// Build step lists ids: // Build step lists ids:
......
...@@ -491,7 +491,7 @@ void ProjectFileWizardExtension::initProjectChoices(const QList<GeneratedFile> g ...@@ -491,7 +491,7 @@ void ProjectFileWizardExtension::initProjectChoices(const QList<GeneratedFile> g
getProjectChoicesAndToolTips(&projectChoices, &projectToolTips, &projectAction, getProjectChoicesAndToolTips(&projectChoices, &projectToolTips, &projectAction,
generatedFiles, m_context, 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->setProjects(projectChoices);
m_context->page->setProjectToolTips(projectToolTips); m_context->page->setProjectToolTips(projectToolTips);
......
...@@ -101,7 +101,7 @@ Core::GeneratedFiles ClassWizard::generateFiles(const QWizard *w, ...@@ -101,7 +101,7 @@ Core::GeneratedFiles ClassWizard::generateFiles(const QWizard *w,
Kit *ClassWizard::kitForWizard(const ClassWizardDialog *wizard) const 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(); const QString nodePath = wizard->extraValues().value(key).toString();
// projectForFile doesn't find project if project file path passed // projectForFile doesn't find project if project file path passed
......
...@@ -87,7 +87,7 @@ bool SubdirsProjectWizard::postGenerateFiles(const QWizard *w, const Core::Gener ...@@ -87,7 +87,7 @@ bool SubdirsProjectWizard::postGenerateFiles(const QWizard *w, const Core::Gener
const QString projectPath = params.projectPath(); const QString projectPath = params.projectPath();
const QString profileName = Core::BaseFileWizard::buildFileName(projectPath, params.fileName, profileSuffix()); const QString profileName = Core::BaseFileWizard::buildFileName(projectPath, params.fileName, profileSuffix());
QVariantMap map; 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())); map.insert(QLatin1String(ProjectExplorer::Constants::PROJECT_KIT_IDS), QVariant::fromValue(wizard->selectedKits()));
Core::ICore::showNewItemDialog(tr("New Subproject", "Title of dialog"), Core::ICore::showNewItemDialog(tr("New Subproject", "Title of dialog"),
Core::IWizard::wizardsOfKind(Core::IWizard::ProjectWizard), Core::IWizard::wizardsOfKind(Core::IWizard::ProjectWizard),
......
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