Skip to content

shapeworks::LandmarkItemDelegate

Inherits from QStyledItemDelegate

Public Signals

Name
void button_clicked(int row)

Public Functions

Name
LandmarkItemDelegate(QObject * parent =0)
void paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const override
QWidget * createEditor(QWidget * parent, const QStyleOptionViewItem & option, const QModelIndex & index) const override
void setEditorData(QWidget * editor, const QModelIndex & index) const override
void setModelData(QWidget * editor, QAbstractItemModel * model, const QModelIndex & index) const override
QSize sizeHint(const QStyleOptionViewItem & option, const QModelIndex & index) const override
void updateEditorGeometry(QWidget * editor, const QStyleOptionViewItem & option, const QModelIndex & index) const override
void set_button_text(std::string button_text)
void set_model(std::shared_ptr< LandmarkTableModel > model)

Public Signals Documentation

signal button_clicked

void button_clicked(
    int row
)

Public Functions Documentation

function LandmarkItemDelegate

LandmarkItemDelegate(
    QObject * parent =0
)

function paint

void paint(
    QPainter * painter,
    const QStyleOptionViewItem & option,
    const QModelIndex & index
) const override

function createEditor

QWidget * createEditor(
    QWidget * parent,
    const QStyleOptionViewItem & option,
    const QModelIndex & index
) const override

function setEditorData

void setEditorData(
    QWidget * editor,
    const QModelIndex & index
) const override

function setModelData

void setModelData(
    QWidget * editor,
    QAbstractItemModel * model,
    const QModelIndex & index
) const override

function sizeHint

QSize sizeHint(
    const QStyleOptionViewItem & option,
    const QModelIndex & index
) const override

function updateEditorGeometry

void updateEditorGeometry(
    QWidget * editor,
    const QStyleOptionViewItem & option,
    const QModelIndex & index
) const override

function set_button_text

void set_button_text(
    std::string button_text
)

function set_model

void set_model(
    std::shared_ptr< LandmarkTableModel > model
)

Updated on 2022-07-23 at 17:50:03 -0600