#include <color_item.h>
Public Member Functions | |
ColorItem (ColorProperty *property) | |
virtual QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option) |
virtual bool | paint (QPainter *painter, const QStyleOptionViewItem &option) |
virtual bool | setEditorData (QWidget *editor) |
virtual bool | setModelData (QWidget *editor) |
Definition at line 39 of file color_item.h.
rviz::ColorItem::ColorItem | ( | ColorProperty * | property | ) |
Definition at line 40 of file color_item.cpp.
QWidget * rviz::ColorItem::createEditor | ( | QWidget * | parent, |
const QStyleOptionViewItem & | option | ||
) | [virtual] |
Override to create a custom editor widget for this item. The base implementation returns NULL, which will case the default QLineEdit to be created.
Reimplemented from rviz::PropertyWidgetItem.
Definition at line 56 of file color_item.cpp.
bool rviz::ColorItem::paint | ( | QPainter * | painter, |
const QStyleOptionViewItem & | option | ||
) | [virtual] |
Do custom painting of the widget item here, and return true; or return false to let the QStyledItemDelegate do the painting.
Reimplemented from rviz::PropertyWidgetItem.
Definition at line 44 of file color_item.cpp.
bool rviz::ColorItem::setEditorData | ( | QWidget * | editor | ) | [virtual] |
Override to load an editor with data from the model. Return true to claim to have done the work, false to fall back on the default behavior.
Reimplemented from rviz::PropertyWidgetItem.
Definition at line 63 of file color_item.cpp.
bool rviz::ColorItem::setModelData | ( | QWidget * | editor | ) | [virtual] |
Override to read data from an editor and store it in the model. Return true to claim to have done the work, false to fall back on the default behavior.
Reimplemented from rviz::PropertyWidgetItem.
Definition at line 74 of file color_item.cpp.