18#ifndef USERPROPERTIES_H
19#define USERPROPERTIES_H
37 const QString = QString())
const override {}
40 const QString = QString())
override {}
42 virtual QDomElement
toXml (QDomDocument &xml_document)
const override;
43 virtual bool fromXml (
const QDomElement &xml_element)
override;
The PropertiesInterface class This class is an interface for have common way to use properties in QEl...
Definition propertiesinterface.h:31
The UserProperties class This class store user properties. User properties are properties set by user...
Definition userproperties.h:32
void deleteUserProperties()
UserProperties::deleteUserProperties Delete all userproperties.
Definition userproperties.cpp:150
QHash< QString, QVariant > m_properties
Definition userproperties.h:55
void setUserProperty(const QString &key, const QVariant &value)
UserProperties::setUserProperty Adds a new property if key does not exist in the properties member,...
Definition userproperties.cpp:169
virtual void fromSettings(const QSettings &, const QString=QString()) override
fromSettings load properties to setting file.
Definition userproperties.h:39
QString tagName() const
Definition userproperties.cpp:208
virtual QDomElement toXml(QDomDocument &xml_document) const override
UserProperties::toXml.
Definition userproperties.cpp:39
virtual bool fromXml(const QDomElement &xml_element) override
UserProperties::fromXml.
Definition userproperties.cpp:74
QString m_tag_name
Definition userproperties.h:56
void setTagName(const QString &tag_name)
UserProperties::setTagName Set the tag name use to store in xml.
Definition userproperties.cpp:204
virtual void toSettings(QSettings &, const QString=QString()) const override
toSettings Save properties to setting file.
Definition userproperties.h:36
bool existUserProperty(const QString &key) const
UserProperties::existUserProperty Checks if a user property with key key is available or not.
Definition userproperties.cpp:179
QVariant userPropertyValue(const QString &key)
UserProperties::userPropertyValue Returns the value of a user property with key key If key is not fou...
Definition userproperties.cpp:191
int userPropertiesCount() const
UserProperties::userPropertiesCount.
Definition userproperties.cpp:158