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 Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
MusicLrcFloatPhotoItem Class Reference

The class of the lrc photo float pixmap item. More...

#include <musiclrcfloatphotowidget.h>

+ Inheritance diagram for MusicLrcFloatPhotoItem:

Public Slots

void sendUserBoxClicked ()
 
void sendUserSelectArt ()
 

Signals

void boxClicked (int index)
 
void itemClicked (int index)
 
- Signals inherited from TTKClickedLabel
void clicked ()
 

Public Member Functions

 MusicLrcFloatPhotoItem (int index, QWidget *parent=nullptr)
 
 ~MusicLrcFloatPhotoItem ()
 
void setPhoto (const QString &path)
 
void setBoxChecked (bool checked)
 
bool boxChecked ()
 
void setBoxVisible (bool v)
 
- Public Member Functions inherited from TTKClickedLabel
 TTKClickedLabel (QWidget *parent=nullptr)
 
 TTKClickedLabel (const QString &text, QWidget *parent=nullptr)
 

Private Member Functions

virtual void enterEvent (QtEnterEvent *event) overridefinal
 

Private Attributes

int m_index
 
QString m_pixPath
 
QCheckBox * m_checkBox
 

Detailed Description

The class of the lrc photo float pixmap item.

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

Definition at line 31 of file musiclrcfloatphotowidget.h.

Constructor & Destructor Documentation

MusicLrcFloatPhotoItem::MusicLrcFloatPhotoItem ( int  index,
QWidget *  parent = nullptr 
)
explicit
MusicLrcFloatPhotoItem::~MusicLrcFloatPhotoItem ( )

Object destructor.

Definition at line 27 of file musiclrcfloatphotowidget.cpp.

References m_checkBox.

Member Function Documentation

bool MusicLrcFloatPhotoItem::boxChecked ( )

Get check box checked state.

Definition at line 50 of file musiclrcfloatphotowidget.cpp.

References m_checkBox.

void MusicLrcFloatPhotoItem::boxClicked ( int  index)
signal

Current check box clicked.

Referenced by sendUserBoxClicked().

void MusicLrcFloatPhotoItem::enterEvent ( QtEnterEvent event)
finaloverrideprivatevirtual

Override the widget event.

Definition at line 74 of file musiclrcfloatphotowidget.cpp.

References QtLablePixmap.

void MusicLrcFloatPhotoItem::itemClicked ( int  index)
signal

Current plane item clicked.

Referenced by sendUserSelectArt().

void MusicLrcFloatPhotoItem::sendUserBoxClicked ( )
slot

User selected the check box state.

Definition at line 60 of file musiclrcfloatphotowidget.cpp.

References boxClicked(), and m_index.

Referenced by MusicLrcFloatPhotoItem().

void MusicLrcFloatPhotoItem::sendUserSelectArt ( )
slot

User selected the plane pic.

Definition at line 65 of file musiclrcfloatphotowidget.cpp.

References itemClicked(), m_index, and QtLablePixmap.

Referenced by MusicLrcFloatPhotoItem().

void MusicLrcFloatPhotoItem::setBoxChecked ( bool  checked)

Set check box checked state.

Definition at line 45 of file musiclrcfloatphotowidget.cpp.

References m_checkBox.

void MusicLrcFloatPhotoItem::setBoxVisible ( bool  v)

Set check box vidible.

Definition at line 55 of file musiclrcfloatphotowidget.cpp.

References m_checkBox.

void MusicLrcFloatPhotoItem::setPhoto ( const QString &  path)

Set photo path and pix.

Definition at line 32 of file musiclrcfloatphotowidget.cpp.

References m_pixPath, and TTK::Image::roundedPixmap().

Member Data Documentation

QCheckBox* MusicLrcFloatPhotoItem::m_checkBox
private
int MusicLrcFloatPhotoItem::m_index
private

Definition at line 88 of file musiclrcfloatphotowidget.h.

Referenced by sendUserBoxClicked(), and sendUserSelectArt().

QString MusicLrcFloatPhotoItem::m_pixPath
private

Definition at line 89 of file musiclrcfloatphotowidget.h.

Referenced by setPhoto().


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