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 Member Functions | Private Member Functions | Private Attributes | List of all members
MusicSpectrumLayoutItem Class Reference

The class of the music spectrum layout item. More...

#include <musicspectrumlayoutwidget.h>

+ Inheritance diagram for MusicSpectrumLayoutItem:

Public Member Functions

 MusicSpectrumLayoutItem (QWidget *parent=nullptr)
 
void addCellItem (const QString &item, const QString &tip)
 
void setChecked (bool checked)
 
bool isChecked () const
 
- Public Member Functions inherited from TTKClickedLabel
 TTKClickedLabel (QWidget *parent=nullptr)
 
 TTKClickedLabel (const QString &text, QWidget *parent=nullptr)
 

Private Member Functions

virtual void paintEvent (QPaintEvent *event) overridefinal
 

Private Attributes

bool m_isSelected
 

Additional Inherited Members

- Signals inherited from TTKClickedLabel
void clicked ()
 

Detailed Description

The class of the music spectrum layout item.

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

Definition at line 30 of file musicspectrumlayoutwidget.h.

Constructor & Destructor Documentation

MusicSpectrumLayoutItem::MusicSpectrumLayoutItem ( QWidget *  parent = nullptr)
explicit

Object constructor.

Definition at line 8 of file musicspectrumlayoutwidget.cpp.

Member Function Documentation

void MusicSpectrumLayoutItem::addCellItem ( const QString &  item,
const QString &  tip 
)

Create cell item by input data.

Definition at line 15 of file musicspectrumlayoutwidget.cpp.

References TTK::Image::roundedPixmap().

Referenced by MusicSpectrumLayoutWidget::addCellItems().

bool MusicSpectrumLayoutItem::isChecked ( ) const

Get spectrum item check state.

Definition at line 27 of file musicspectrumlayoutwidget.cpp.

References m_isSelected.

void MusicSpectrumLayoutItem::paintEvent ( QPaintEvent *  event)
finaloverrideprivatevirtual

Override the widget event.

Definition at line 32 of file musicspectrumlayoutwidget.cpp.

References m_isSelected.

void MusicSpectrumLayoutItem::setChecked ( bool  checked)

Set spectrum item check state.

Definition at line 21 of file musicspectrumlayoutwidget.cpp.

References m_isSelected.

Member Data Documentation

bool MusicSpectrumLayoutItem::m_isSelected
private

Definition at line 59 of file musicspectrumlayoutwidget.h.

Referenced by isChecked(), paintEvent(), and setChecked().


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