ProjectExplorer: Make RunConfiguration::fromMap() public.

Callers might want to use it polymorphically, e.g. in the restore()
method of a factory that can create more than run configuration.

Change-Id: I773f7b5d75fb6f9ad007cdafc0cf0b56e5f8da8b
Reviewed-on: http://codereview.qt.nokia.com/4266
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Christian Kandeler
2011-09-06 16:15:58 +02:00
parent c083bded23
commit 1edf045a0e

View File

@@ -99,6 +99,7 @@ public:
uint qmlDebugServerPort() const; uint qmlDebugServerPort() const;
void setQmlDebugServerPort(uint port); void setQmlDebugServerPort(uint port);
virtual bool fromMap(const QVariantMap &map);
virtual QVariantMap toMap() const; virtual QVariantMap toMap() const;
QList<IRunConfigurationAspect *> extraAspects() const; QList<IRunConfigurationAspect *> extraAspects() const;
@@ -128,8 +129,6 @@ protected:
/// convenience method to get current build configuration. /// convenience method to get current build configuration.
BuildConfiguration *activeBuildConfiguration() const; BuildConfiguration *activeBuildConfiguration() const;
virtual bool fromMap(const QVariantMap &map);
private: private:
void addExtraAspects(); void addExtraAspects();