Public Member Functions | |
virtual QVariant | getViewData (int column, int role) const |
Return data appropriate for the given column (0 or 1) and role for this Property. | |
IconizedProperty (const QString &name=QString(), const QVariant default_value=QVariant(), const QString &description=QString(), Property *parent=0, const char *changed_slot=0, QObject *receiver=0) | |
void | setIcon (QIcon icon) |
Private Attributes | |
QIcon | icon_ |
Definition at line 84 of file visualization_manager.cpp.
rviz::IconizedProperty::IconizedProperty | ( | const QString & | name = QString() , |
const QVariant | default_value = QVariant() , |
||
const QString & | description = QString() , |
||
Property * | parent = 0 , |
||
const char * | changed_slot = 0 , |
||
QObject * | receiver = 0 |
||
) | [inline] |
Definition at line 86 of file visualization_manager.cpp.
virtual QVariant rviz::IconizedProperty::getViewData | ( | int | column, |
int | role | ||
) | const [inline, virtual] |
Return data appropriate for the given column (0 or 1) and role for this Property.
column | 0 for left column, 1 for right column. |
role | is a Qt::ItemDataRole |
When overriding to add new data (like a color for example), check the role for the thing you know about, and if it matches, return your data. If it does not match, call the parent class version of this function and return its result.
Return values from this function or overridden versions of it are where background and foreground colors, check-box checked-state values, text, and fonts all come from.
Reimplemented from rviz::Property.
Definition at line 93 of file visualization_manager.cpp.
void rviz::IconizedProperty::setIcon | ( | QIcon | icon | ) | [inline] |
Definition at line 98 of file visualization_manager.cpp.
QIcon rviz::IconizedProperty::icon_ [private] |
Reimplemented from rviz::Property.
Definition at line 100 of file visualization_manager.cpp.