29 retval->mName = name.isEmpty() ? uid : name;
QColor string2color(QString input, QColor defaultValue)
boost::shared_ptr< class ColorProperty > ColorPropertyPtr
QString color2string(QColor color)
virtual QString getUid() const
virtual bool setValue(QColor value)
set the data value.
Helper class for storing one string value in an xml document.
void changed()
emit when the underlying data value is changed: The user interface will be updated.
void writeValue(const QString &val)
virtual QColor getValue() const
get the data value.
static ColorPropertyPtr initialize(const QString &uid, QString name, QString help, QColor value, QDomNode root=QDomNode())
virtual QString getHelp() const
return a descriptive help string for the data, used for example as a tool tip.
virtual QString getDisplayName() const
name of data entity. Used for display to user.
Namespace for all CustusX production code.