Class to multiple inherit which adds functions to read and write properties from a given object. The object can be the class itself or a child instance.
More...
#include <Persistent.h>
|
| Persistent (QObject *obj) |
| Constructor.
|
|
void | setSourceObject (QObject *obj) |
|
QStringList | getProperties () const |
| Gets the properties from the object as a string list to store as settings.
|
|
void | setProperties (const QStringList &) const |
| Sets the properties of the object as a string list settings.
|
|
|
QMap< int, const char * > | getObjectProperties (const QObject *obj) const |
| Gets a mapped property list af all properties of the object.
|
|
Class to multiple inherit which adds functions to read and write properties from a given object. The object can be the class itself or a child instance.
◆ Persistent()
sf::Persistent::Persistent |
( |
QObject * |
obj | ) |
|
|
explicit |
Constructor.
- Parameters
-
obj | Object to get or set properties from or to. |
◆ getObjectProperties()
QMap< int, const char * > sf::Persistent::getObjectProperties |
( |
const QObject * |
obj | ) |
const |
|
protected |
Gets a mapped property list af all properties of the object.
◆ getProperties()
QStringList sf::Persistent::getProperties |
( |
| ) |
const |
Gets the properties from the object as a string list to store as settings.
◆ setProperties()
void sf::Persistent::setProperties |
( |
const QStringList & |
| ) |
const |
Sets the properties of the object as a string list settings.
◆ setSourceObject()
void sf::Persistent::setSourceObject |
( |
QObject * |
obj | ) |
|
- Parameters
-
obj | Sets the object for the source of the properties. |
The documentation for this class was generated from the following file: