42 : error_message_( error_message )
54 case Qt::BackgroundRole:
return QColor( Qt::white );
64 return "The class required for this display, '" +
getClassId() +
"', could not be loaded.<br><b>Error:</b><br>" +
error_message_;
virtual void setIcon(const QIcon &icon)
Set the Display's icon.
virtual void save(Config config)
Save Config equivalent to the last which was sent to load().
virtual QVariant getViewData(int column, int role) const
Return data appropriate for the given column (0 or 1) and role for this Display.
bool isValid() const
Returns true if the internal Node reference is valid, false if not. Same as (getType() != Invalid)...
Configuration data storage class.
virtual QString getClassId() const
Return the class identifier which was used to create this instance. This version just returns whateve...
virtual QVariant getViewData(int column, int role) const
Return data appropriate for the given column (0 or 1) and role for this Display.
static QColor statusColor(Level level)
Return the color appropriate for the given status level.
virtual QString getDescription() const
Return the description.
virtual void load(const Config &config)
Load the settings for this display from the given Config node, which must be a map.
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 void load(const Config &config)
Store the given Config data for later, so we can return it with save() when someone writes this back ...
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.