Public Member Functions
rviz::ColorItem Class Reference

#include <color_item.h>

Inheritance diagram for rviz::ColorItem:
Inheritance graph
[legend]

List of all members.

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)

Detailed Description

Definition at line 39 of file color_item.h.


Constructor & Destructor Documentation

Definition at line 40 of file color_item.cpp.


Member Function Documentation

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.


The documentation for this class was generated from the following files:


rviz
Author(s): Dave Hershberger, Josh Faust
autogenerated on Mon Jan 6 2014 11:54:33