LibrePCB Developers Documentation
CheckableItemsDelegate Class Referencefinal

Subclass of QStyledItemDelegate to display/edit a list of checkable strings. More...

#include <checkableitemsdelegate.h>

Inherits QStyledItemDelegate.

+ Collaboration diagram for CheckableItemsDelegate:

Public Member Functions

 CheckableItemsDelegate (QObject *parent=nullptr) noexcept
 
 CheckableItemsDelegate (const CheckableItemsDelegate &other)=delete
 
 ~CheckableItemsDelegate () noexcept
 
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
 
CheckableItemsDelegateoperator= (const CheckableItemsDelegate &rhs)=delete
 

Detailed Description

Subclass of QStyledItemDelegate to display/edit a list of checkable strings.

See also
librepcb::editor::CheckableItemsEditorWidget

Constructor & Destructor Documentation

◆ CheckableItemsDelegate() [1/2]

CheckableItemsDelegate ( QObject *  parent = nullptr)
explicitnoexcept

◆ CheckableItemsDelegate() [2/2]

◆ ~CheckableItemsDelegate()

~CheckableItemsDelegate ( )
noexcept

Member Function Documentation

◆ createEditor()

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

◆ setEditorData()

void setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const
override
+ Here is the call graph for this function:

◆ setModelData()

void setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const
override
+ Here is the call graph for this function:

◆ updateEditorGeometry()

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

◆ operator=()

CheckableItemsDelegate & operator= ( const CheckableItemsDelegate rhs)
delete

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