LibrePCB Developers Documentation
Loading...
Searching...
No Matches
PartInformationDelegate Class Referencefinal

Subclass of QStyledItemDelegate to display part status/price. More...

#include <partinformationdelegate.h>

Inherits QStyledItemDelegate.

+ Collaboration diagram for PartInformationDelegate:

Classes

struct  Data
 

Public Member Functions

 PartInformationDelegate (bool fillCell, QObject *parent=nullptr) noexcept
 
 PartInformationDelegate (const PartInformationDelegate &other)=delete
 
 ~PartInformationDelegate () noexcept
 
virtual QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const noexcept override
 
virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
PartInformationDelegateoperator= (const PartInformationDelegate &rhs)=delete
 

Private Member Functions

bool getData (const QModelIndex &index, Data &data) const noexcept
 

Private Attributes

const bool mFillCell
 

Detailed Description

Subclass of QStyledItemDelegate to display part status/price.

Constructor & Destructor Documentation

◆ PartInformationDelegate() [1/2]

PartInformationDelegate ( bool  fillCell,
QObject *  parent = nullptr 
)
explicitnoexcept

◆ PartInformationDelegate() [2/2]

◆ ~PartInformationDelegate()

~PartInformationDelegate ( )
noexcept

Member Function Documentation

◆ sizeHint()

QSize sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
overridevirtualnoexcept
+ Here is the call graph for this function:

◆ paint()

void paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
overridevirtual
+ Here is the call graph for this function:

◆ operator=()

PartInformationDelegate & operator= ( const PartInformationDelegate rhs)
delete

◆ getData()

bool getData ( const QModelIndex &  index,
Data data 
) const
privatenoexcept
+ Here is the caller graph for this function:

Member Data Documentation

◆ mFillCell

const bool mFillCell
private

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