54 QHash<QString, StatusProperty*>::iterator child_iter =
status_children_.find( name );
63 child = child_iter.value();
100 for(
int i = 0; i < to_be_deleted.size(); i++ )
102 delete to_be_deleted[ i ];
112 QHash<QString, StatusProperty*>::iterator iter;
115 Level child_level = iter.value()->getLevel();
116 if( child_level > new_level )
118 new_level = child_level;
virtual void setLevel(Level level)
A single element of a property tree, with a name, value, description, and possibly children...
virtual void setLevel(Level level)
virtual void setName(const QString &name)
Set the name.
virtual Level getLevel() const
virtual int numChildren() const
Return the number of child objects (Property or otherwise).
void setShouldBeSaved(bool save)
If save is true and getReadOnly() is false, shouldBeSaved will return true; otherwise false...
void setStatus(Level level, const QString &name, const QString &text)
static QString statusWord(Level level)
Return the word appropriate for the given status level: "Ok", "Warn", or "Error". ...
void updateLabel()
Update the label text based on the name_prefix_ and the current status level.
StatusProperty(const QString &name, const QString &text, Level level, Property *parent)
StatusList(const QString &name=QString("Status"), Property *parent=0)
virtual void setName(const QString &name)
Set the prefix of the name.
virtual bool setValue(const QVariant &new_value)
Set the status text. Overridden from Property.
QHash< QString, StatusProperty * > status_children_
void deleteStatus(const QString &name)