TTKMusicPlayer
4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the checkbox item delegate. More...
#include <ttkitemdelegate.h>
Signals | |
void | buttonChecked () |
Public Member Functions | |
TTKCheckBoxItemDelegate (QObject *parent=nullptr) | |
~TTKCheckBoxItemDelegate () | |
virtual void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const overridefinal |
![]() | |
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 | |
![]() | |
enum | Module { Null = 0x0, DisplayMode = 0x1, ElideMode = 0x2, TreeMode = 0x4 } |
![]() | |
TTKUInt8 | m_mode |
QWidget * | m_container |
The class of the checkbox item delegate.
Definition at line 87 of file ttkitemdelegate.h.
|
explicit |
Object constructor.
Definition at line 43 of file ttkitemdelegate.cpp.
References m_checkBox, and TTKAbstractItemDelegate::m_container.
TTKCheckBoxItemDelegate::~TTKCheckBoxItemDelegate | ( | ) |
|
signal |
Button state changed.
|
finaloverridevirtual |
Override paint.
Reimplemented from TTKAbstractItemDelegate.
Definition at line 59 of file ttkitemdelegate.cpp.
References TTKAbstractItemDelegate::DisplayMode, m_checkBox, TTKAbstractItemDelegate::m_mode, TTKAbstractItemDelegate::paint(), TTKAbstractItemDelegate::TreeMode, TTK_CHECKED_ROLE, TTK_DISPLAY_ROLE, TTK_ENABLED_ROLE, TTKConstCast, and TTKStaticCast.
|
private |
Definition at line 113 of file ttkitemdelegate.h.
|
private |
Definition at line 114 of file ttkitemdelegate.h.
Referenced by paint(), TTKCheckBoxItemDelegate(), and ~TTKCheckBoxItemDelegate().