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

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

#include <ttkitemdelegate.h>

+ Inheritance diagram for TTKAbstractItemDelegate:

Public Types

enum  Module { Null = 0x0, DisplayMode = 0x1, ElideMode = 0x2, TreeMode = 0x4 }
 

Public Member Functions

 TTKAbstractItemDelegate (QObject *parent=nullptr)
 
void setModuleMode (TTKUInt8 mode)
 
void setStyleSheet (const QString &style) const
 
virtual QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &) const overridefinal
 
virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 

Protected Attributes

TTKUInt8 m_mode
 
QWidget * m_container
 

Detailed Description

The class of the abstract item delegate.

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

Definition at line 40 of file ttkitemdelegate.h.

Member Enumeration Documentation

Enumerator
Null 
DisplayMode 
ElideMode 
TreeMode 

Definition at line 45 of file ttkitemdelegate.h.

Constructor & Destructor Documentation

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

Object constructor.

Definition at line 9 of file ttkitemdelegate.cpp.

Member Function Documentation

void TTKAbstractItemDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
overridevirtual
void TTKAbstractItemDelegate::setModuleMode ( TTKUInt8  mode)
inline
void TTKAbstractItemDelegate::setStyleSheet ( const QString &  style) const
QSize TTKAbstractItemDelegate::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &   
) const
finaloverridevirtual

Override size hint.

Definition at line 25 of file ttkitemdelegate.cpp.

Member Data Documentation

QWidget* TTKAbstractItemDelegate::m_container
protected
TTKUInt8 TTKAbstractItemDelegate::m_mode
protected

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