Commit fb1ef427 authored by dt's avatar dt
Browse files

Remove setValue/value from Project

parent 592c1fba
......@@ -143,8 +143,6 @@ void Project::saveSettingsImpl(PersistentSettingsWriter &writer)
// For compability with older versions the "name" is saved as a string instead of a number
writer.saveValue("activebuildconfiguration", QString::number(bcs.indexOf(m_activeBuildConfiguration)));
//save m_values
writer.saveValue("project", m_values);
//save buildsettings
QStringList buildConfigurationNames;
......@@ -206,8 +204,6 @@ void Project::saveSettingsImpl(PersistentSettingsWriter &writer)
bool Project::restoreSettingsImpl(PersistentSettingsReader &reader)
{
m_values = reader.restoreValue("project").toMap();
const QList<IBuildStepFactory *> buildStepFactories =
ExtensionSystem::PluginManager::instance()->getObjects<IBuildStepFactory>();
......@@ -380,21 +376,6 @@ bool Project::restoreSettingsImpl(PersistentSettingsReader &reader)
return true;
}
void Project::setValue(const QString &name, const QVariant & value)
{
m_values.insert(name, value);
}
QVariant Project::value(const QString &name) const
{
QMap<QString, QVariant>::const_iterator it =
m_values.find(name);
if (it != m_values.constEnd())
return it.value();
else
return QVariant();
}
BuildConfiguration *Project::activeBuildConfiguration() const
{
return m_activeBuildConfiguration; //TODO
......
......@@ -93,9 +93,6 @@ public:
virtual IBuildConfigurationFactory *buildConfigurationFactory() const = 0;
void setValue(const QString &name, const QVariant &value);
QVariant value(const QString &name) const;
// Running
QList<RunConfiguration *> runConfigurations() const;
void addRunConfiguration(RunConfiguration* runConfiguration);
......@@ -162,7 +159,6 @@ protected:
virtual bool restoreSettingsImpl(PersistentSettingsReader &reader);
private:
QMap<QString, QVariant> m_values;
QList<BuildConfiguration *> m_buildConfigurationValues;
BuildConfiguration *m_activeBuildConfiguration;
QList<RunConfiguration *> m_runConfigurations;
......
......@@ -261,6 +261,7 @@ QString QMakeStepConfigWidget::summaryText() const
void QMakeStepConfigWidget::qtVersionChanged()
{
Q_UNUSED(bc)
updateTitleLabel();
updateEffectiveQMakeCall();
}
......
Markdown is supported
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