Skip to content
Snippets Groups Projects
Commit 8c8a80c4 authored by Christian Kandeler's avatar Christian Kandeler
Browse files

ProjectConfiguration: Make fromMap() function public, fix comments.

Reviewed-by: Tobias Hunger
parent 1d4cd9b7
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,10 @@ public: ...@@ -57,7 +57,10 @@ public:
void setDisplayName(const QString &name); void setDisplayName(const QString &name);
void setDefaultDisplayName(const QString &name); void setDefaultDisplayName(const QString &name);
// Note: Make sure subclasses call the superclasses toMap() method! // Note: Make sure subclasses call the superclasses' fromMap() method!
virtual bool fromMap(const QVariantMap &map);
// Note: Make sure subclasses call the superclasses' toMap() method!
virtual QVariantMap toMap() const; virtual QVariantMap toMap() const;
signals: signals:
...@@ -67,9 +70,6 @@ protected: ...@@ -67,9 +70,6 @@ protected:
ProjectConfiguration(QObject *parent, const QString &id); ProjectConfiguration(QObject *parent, const QString &id);
ProjectConfiguration(QObject *parent, const ProjectConfiguration *source); ProjectConfiguration(QObject *parent, const ProjectConfiguration *source);
// Note: Make sure subclasses call the superclasses toMap() method!
virtual bool fromMap(const QVariantMap &map);
private: private:
Q_DISABLE_COPY(ProjectConfiguration) Q_DISABLE_COPY(ProjectConfiguration)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment