TagItemDelegate Class Reference

Public Member Functions

 TagItemDelegate (QWidget *parent)
 
void updateFonts ()
 
virtual QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &idx) const override
 
virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &idx) const override
 
virtual void setEditorData (QWidget *editor, const QModelIndex &index) const override
 

Protected Member Functions

void initFont ()
 

Protected Attributes

QFont m_font
 
QFont m_monospaceFont
 
QFont m_emojiFont
 
int m_baseline
 
int m_charWidth
 
int m_charHeight
 
int m_charOffset
 

Constructor & Destructor Documentation

◆ TagItemDelegate()

TagItemDelegate::TagItemDelegate ( QWidget *  parent)

Member Function Documentation

◆ initFont()

void TagItemDelegate::initFont ( )
protected

◆ paint()

virtual void TagItemDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  idx 
) const
overridevirtual

◆ setEditorData()

virtual void TagItemDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const
overridevirtual

◆ sizeHint()

virtual QSize TagItemDelegate::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  idx 
) const
overridevirtual

◆ updateFonts()

void TagItemDelegate::updateFonts ( )

Member Data Documentation

◆ m_baseline

int TagItemDelegate::m_baseline
protected

◆ m_charHeight

int TagItemDelegate::m_charHeight
protected

◆ m_charOffset

int TagItemDelegate::m_charOffset
protected

◆ m_charWidth

int TagItemDelegate::m_charWidth
protected

◆ m_emojiFont

QFont TagItemDelegate::m_emojiFont
protected

◆ m_font

QFont TagItemDelegate::m_font
protected

◆ m_monospaceFont

QFont TagItemDelegate::m_monospaceFont
protected

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