TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Signals | Public Member Functions | Private Attributes | List of all members
TTKCheckBoxItemDelegate Class Reference

The class of the checkbox item delegate. More...

#include <ttkitemdelegate.h>

+ Inheritance diagram for TTKCheckBoxItemDelegate:

Signals

void buttonChecked ()
 

Public Member Functions

 TTKCheckBoxItemDelegate (QObject *parent=nullptr)
 
 ~TTKCheckBoxItemDelegate ()
 
virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const overridefinal
 
- Public Member Functions inherited from TTKAbstractItemDelegate
 TTKAbstractItemDelegate (QObject *parent=nullptr)
 
void setModuleMode (TTKUInt8 mode)
 
void setStyleSheet (const QString &style) const
 
virtual QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &) const overridefinal
 

Private Attributes

bool m_background
 
QCheckBox * m_checkBox
 

Additional Inherited Members

- Public Types inherited from TTKAbstractItemDelegate
enum  Module { Null = 0x0, DisplayMode = 0x1, ElideMode = 0x2, TreeMode = 0x4 }
 
- Protected Attributes inherited from TTKAbstractItemDelegate
TTKUInt8 m_mode
 
QWidget * m_container
 

Detailed Description

The class of the checkbox item delegate.

Author
Greedysky greed.nosp@m.ysky.nosp@m.@163..nosp@m.com

Definition at line 87 of file ttkitemdelegate.h.

Constructor & Destructor Documentation

TTKCheckBoxItemDelegate::TTKCheckBoxItemDelegate ( QObject *  parent = nullptr)
explicit

Object constructor.

Definition at line 43 of file ttkitemdelegate.cpp.

References m_checkBox, and TTKAbstractItemDelegate::m_container.

TTKCheckBoxItemDelegate::~TTKCheckBoxItemDelegate ( )

Object destructor.

Definition at line 54 of file ttkitemdelegate.cpp.

References m_checkBox.

Member Function Documentation

void TTKCheckBoxItemDelegate::buttonChecked ( )
signal

Button state changed.

void TTKCheckBoxItemDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
finaloverridevirtual

Member Data Documentation

bool TTKCheckBoxItemDelegate::m_background
private

Definition at line 113 of file ttkitemdelegate.h.

QCheckBox* TTKCheckBoxItemDelegate::m_checkBox
private

Definition at line 114 of file ttkitemdelegate.h.

Referenced by paint(), TTKCheckBoxItemDelegate(), and ~TTKCheckBoxItemDelegate().


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