41 : error_message_(error_message)
53 case Qt::ForegroundRole:
64 return "The class required for this display, '" +
getClassId() +
QVariant getViewData(int column, int role) const override
Return data appropriate for the given column (0 or 1) and role for this Display.
virtual void save(Config config)
Save Config equivalent to the last which was sent to load().
void load(const Config &config) override
Load the settings for this display from the given Config node, which must be a map.
A FailedDisplay instance represents a Display class we tried and failed to instantiate.
bool isValid() const
Returns true if the internal Node reference is valid, false if not. Same as (getType() != Invalid)...
Configuration data storage class.
QVariant getViewData(int column, int role) const override
Return data appropriate for the given column (0 or 1) and role for this Display.
void load(const Config &config) override
Store the given Config data for later, so we can return it with save() when someone writes this back ...
static QColor statusColor(Level level)
Return the color appropriate for the given status level.
QString getDescription() const override
Return the description.
virtual void setClassId(const QString &class_id)
Set the class identifier used to create this instance. Typically this will be set by the factory obje...
virtual QString getClassId() const
Return the class identifier which was used to create this instance. This version just returns whateve...
FailedDisplay(const QString &desired_class_id, const QString &error_message)
QPixmap loadPixmap(QString url, bool fill_cache)
void copy(const Config &source)
Make this a deep copy of source.
void setIcon(const QIcon &icon) override
Set the Display's icon.