forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/3.0'
Conflicts: qtcreator.pri qtcreator.qbs src/plugins/git/gitplugin.cpp src/plugins/qt4projectmanager/qmakeproject.cpp Change-Id: Icbd485214b1add7869233dfe0dd9c6a76bddfc7d
This commit is contained in:
@@ -71,7 +71,6 @@ const char TARGET_KEY_PREFIX[] = "ProjectExplorer.Project.Target.";
|
||||
const char TARGET_COUNT_KEY[] = "ProjectExplorer.Project.TargetCount";
|
||||
const char EDITOR_SETTINGS_KEY[] = "ProjectExplorer.Project.EditorSettings";
|
||||
const char PLUGIN_SETTINGS_KEY[] = "ProjectExplorer.Project.PluginSettings";
|
||||
const char CPP_SETTINGS_KEY[] = "ProjectExplorer.Project.CppSettings";
|
||||
} // namespace
|
||||
|
||||
namespace ProjectExplorer {
|
||||
@@ -92,7 +91,6 @@ public:
|
||||
Core::Context m_projectContext;
|
||||
Core::Context m_projectLanguages;
|
||||
QVariantMap m_pluginSettings;
|
||||
QVariantMap m_additionalCppDefines;
|
||||
SettingsAccessor *m_accessor;
|
||||
};
|
||||
|
||||
@@ -343,7 +341,6 @@ QVariantMap Project::toMap() const
|
||||
|
||||
map.insert(QLatin1String(EDITOR_SETTINGS_KEY), d->m_editorConfiguration->toMap());
|
||||
map.insert(QLatin1String(PLUGIN_SETTINGS_KEY), d->m_pluginSettings);
|
||||
map.insert(QLatin1String(CPP_SETTINGS_KEY), d->m_additionalCppDefines);
|
||||
|
||||
return map;
|
||||
}
|
||||
@@ -371,8 +368,6 @@ bool Project::fromMap(const QVariantMap &map)
|
||||
|
||||
if (map.contains(QLatin1String(PLUGIN_SETTINGS_KEY)))
|
||||
d->m_pluginSettings = map.value(QLatin1String(PLUGIN_SETTINGS_KEY)).toMap();
|
||||
if (map.contains(QLatin1String(CPP_SETTINGS_KEY)))
|
||||
d->m_additionalCppDefines = map.value(QLatin1String(CPP_SETTINGS_KEY)).toMap();
|
||||
|
||||
bool ok;
|
||||
int maxI(map.value(QLatin1String(TARGET_COUNT_KEY), 0).toInt(&ok));
|
||||
@@ -477,16 +472,6 @@ void Project::setNamedSettings(const QString &name, const QVariant &value)
|
||||
d->m_pluginSettings.insert(name, value);
|
||||
}
|
||||
|
||||
QVariantMap Project::additionalCppDefines() const
|
||||
{
|
||||
return d->m_additionalCppDefines;
|
||||
}
|
||||
|
||||
void Project::setAdditionalCppDefines(const QVariantMap value) const
|
||||
{
|
||||
d->m_additionalCppDefines = value;
|
||||
}
|
||||
|
||||
bool Project::needsConfiguration() const
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user