Fraxinus
16.5.0-fx-rc9
An IGT application
|
Helper class for storing one string value in an xml document. More...
#include <cxXmlOptionItem.h>
Public Member Functions | |
XmlOptionItem () | |
XmlOptionItem (const QString &uid, QDomElement root) | |
QString | readValue (const QString &defval) const |
void | writeValue (const QString &val) |
QVariant | readVariant (const QVariant &defval=QVariant()) const |
void | writeVariant (const QVariant &val) |
Helper class for storing one string value in an xml document.
Init with the parent (root) node and an uid, then read/write the value.
Definition at line 59 of file cxXmlOptionItem.h.
|
inline |
Definition at line 62 of file cxXmlOptionItem.h.
cx::XmlOptionItem::XmlOptionItem | ( | const QString & | uid, |
QDomElement | root | ||
) |
Definition at line 178 of file cxXmlOptionItem.cpp.
QString cx::XmlOptionItem::readValue | ( | const QString & | defval | ) | const |
Definition at line 199 of file cxXmlOptionItem.cpp.
QVariant cx::XmlOptionItem::readVariant | ( | const QVariant & | defval = QVariant() | ) | const |
Definition at line 184 of file cxXmlOptionItem.cpp.
void cx::XmlOptionItem::writeValue | ( | const QString & | val | ) |
Definition at line 210 of file cxXmlOptionItem.cpp.
void cx::XmlOptionItem::writeVariant | ( | const QVariant & | val | ) |
Definition at line 193 of file cxXmlOptionItem.cpp.