NeTrainSim 0.1.1 beta
The Open-Source Network Trains Simulator
 
Loading...
Searching...
No Matches
CheckboxDelegate Class Reference

#include <checkboxdelegate.h>

Inheritance diagram for CheckboxDelegate:

Public Member Functions

 CheckboxDelegate (QObject *parent=nullptr)
 
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
 
void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 

Constructor & Destructor Documentation

◆ CheckboxDelegate()

CheckboxDelegate::CheckboxDelegate ( QObject *  parent = nullptr)
inlineexplicit

Member Function Documentation

◆ createEditor()

QWidget * CheckboxDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
inlineoverride

◆ paint()

void CheckboxDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
inlineoverride

◆ setEditorData()

void CheckboxDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const
inlineoverride

◆ setModelData()

void CheckboxDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const
inlineoverride

◆ updateEditorGeometry()

void CheckboxDelegate::updateEditorGeometry ( QWidget *  editor,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
inlineoverride