29 #ifndef STATUSPROPERTY_H 30 #define STATUSPROPERTY_H 48 virtual bool setValue(
const QVariant& new_value );
53 virtual QVariant
getViewData(
int column,
int role )
const;
87 #endif // STATUSPROPERTY_H virtual void setLevel(Level level)
StatusProperty::Level StatusLevel
A single element of a property tree, with a name, value, description, and possibly children...
virtual Level getLevel() const
virtual Qt::ItemFlags getViewFlags(int column) const
Return item flags appropriate for the given column (0 or 1) for this StatusProperty.
static QString status_words_[3]
static QColor statusColor(Level level)
Return the color appropriate for the given status level.
QIcon statusIcon(Level level) const
virtual QVariant getViewData(int column, int role) const
Return data appropriate for the given column (0 or 1) and role for this StatusProperty.
static QString statusWord(Level level)
Return the word appropriate for the given status level: "Ok", "Warn", or "Error". ...
static QColor status_colors_[3]
StatusProperty(const QString &name, const QString &text, Level level, Property *parent)
virtual bool setValue(const QVariant &new_value)
Set the status text. Overridden from Property.