29 #ifndef STATUSPROPERTY_H 30 #define STATUSPROPERTY_H 52 bool setValue(
const QVariant& new_value)
override;
57 QVariant
getViewData(
int column,
int role)
const override;
91 #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...
bool setValue(const QVariant &new_value) override
Set the status text. Overridden from Property.
QIcon statusIcon(Level level) const
QVariant getViewData(int column, int role) const override
Return data appropriate for the given column (0 or 1) and role for this StatusProperty.
virtual Level getLevel() const
static QString status_words_[3]
static QColor statusColor(Level level)
Return the color appropriate for the given status level.
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)
Qt::ItemFlags getViewFlags(int column) const override
Return item flags appropriate for the given column (0 or 1) for this StatusProperty.