LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ComboBoxDelegate Class Referencefinal

Subclass of QStyledItemDelegate which uses QComboBox as item editor. More...

#include <comboboxdelegate.h>

Inherits QStyledItemDelegate.

+ Collaboration diagram for ComboBoxDelegate:

Public Member Functions

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

Detailed Description

Subclass of QStyledItemDelegate which uses QComboBox as item editor.

Constructor & Destructor Documentation

ComboBoxDelegate ( QObject *  parent = nullptr)
explicitnoexcept
ComboBoxDelegate ( const ComboBoxDelegate other)
delete
~ComboBoxDelegate ( )
noexcept

Member Function Documentation

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
ComboBoxDelegate& operator= ( const ComboBoxDelegate rhs)
delete

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