Go to the documentation of this file.
30 #include <QAbstractItemView>
44 const QStyleOptionViewItem& option,
45 const QModelIndex& index)
const
48 if (!prop || !prop->
paint(painter, option))
50 QStyledItemDelegate::paint(painter, option, index);
55 const QStyleOptionViewItem& option,
56 const QModelIndex& index)
const
64 if (index.column() != 0)
66 if (QWidget* editor = prop->
createEditor(parent, option))
69 return QStyledItemDelegate::createEditor(parent, option, index);
virtual bool paint(QPainter *painter, const QStyleOptionViewItem &option) const
Hook to provide custom painting of the value data (right-hand column) in a subclass.
A single element of a property tree, with a name, value, description, and possibly children.
PropertyTreeDelegate(QObject *parent_object=nullptr)
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
virtual QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option)
Create an editor widget to edit the value of this property.
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
virtual bool getReadOnly() const
Return the read-only-ness of this property.
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Aug 2 2024 08:43:10