|
TTKMusicPlayer
4.2.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the progress bar item delegate. More...
#include <ttkitemdelegate.h>
Inheritance diagram for TTKProgressBarItemDelegate:Public Member Functions | |
| TTKProgressBarItemDelegate (QObject *parent=nullptr) | |
| ~TTKProgressBarItemDelegate () | |
| 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) noexcept |
| void | setStyleSheet (const QString &style) const |
| virtual QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &) const overridefinal |
Private Attributes | |
| QProgressBar * | m_progress |
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 |
The class of the progress bar item delegate.
Definition at line 122 of file ttkitemdelegate.h.
|
explicit |
Object constructor.
Definition at line 97 of file ttkitemdelegate.cpp.
References TTKAbstractItemDelegate::m_container, and m_progress.
| TTKProgressBarItemDelegate::~TTKProgressBarItemDelegate | ( | ) |
|
finaloverridevirtual |
Override paint.
Reimplemented from TTKAbstractItemDelegate.
Definition at line 109 of file ttkitemdelegate.cpp.
References TTKAbstractItemDelegate::m_mode, m_progress, TTKAbstractItemDelegate::paint(), TTKAbstractItemDelegate::TreeMode, and TTK_PROGRESS_ROLE.
|
private |
Definition at line 142 of file ttkitemdelegate.h.
Referenced by paint(), TTKProgressBarItemDelegate(), and ~TTKProgressBarItemDelegate().
1.8.8