PropertyStorage <-> QVariantMap
This commit is contained in:
@@ -48,6 +48,7 @@ public:
|
||||
};
|
||||
|
||||
PropertyStorage(const QList<Property> & pl) {props = pl;}
|
||||
PropertyStorage(const QVariantMap & pl);
|
||||
|
||||
typedef QList<Property>::const_iterator const_iterator;
|
||||
typedef QList<Property>::iterator iterator;
|
||||
@@ -83,6 +84,7 @@ public:
|
||||
QList<Property> & properties() {return props;}
|
||||
const QList<Property> & properties() const {return props;}
|
||||
const PropertyStorage & propertyStorage() const {return *this;}
|
||||
QVariantMap toVariantMap() const;
|
||||
bool isPropertyExists(const QString & _name) const;
|
||||
void clearProperties() {props.clear();}
|
||||
void addProperty(const Property & p);
|
||||
|
||||
Reference in New Issue
Block a user