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 | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MusicCommentsWidget Class Reference

The class of the song comment widget. More...

#include <musiccommentswidget.h>

+ Inheritance diagram for MusicCommentsWidget:

Public Slots

void createCommentItem (const MusicResultDataItem &item)
 
void buttonClicked (int index)
 
void createEMOJILabelWidget ()
 
void currentEMOJIchanged (const QString &data)
 

Public Member Functions

 MusicCommentsWidget (QWidget *parent=nullptr)
 
 ~MusicCommentsWidget ()
 
virtual void initialize (bool isPain)
 
void setCurrentSongName (const QString &name)
 

Protected Member Functions

virtual void mousePressEvent (QMouseEvent *event) overridefinal
 
virtual void mouseMoveEvent (QMouseEvent *event) overridefinal
 
virtual void mouseReleaseEvent (QMouseEvent *event) overridefinal
 
void initLabel (const QString &name, int total)
 
void deleteCommentsItems ()
 
void createPageWidget ()
 

Protected Attributes

bool m_isPain
 
QTextEdit * m_messageEdit
 
QLabel * m_topLabel
 
QLabel * m_commentsLabel
 
QWidget * m_messageComments
 
MusicPageQueryWidgetm_pageQueryWidget
 
QList< MusicCommentsItem * > m_commentsItems
 
MusicCommentsRequestm_networkRequest
 

Detailed Description

The class of the song comment widget.

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

Definition at line 67 of file musiccommentswidget.h.

Constructor & Destructor Documentation

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

Object constructor.

Definition at line 152 of file musiccommentswidget.cpp.

MusicCommentsWidget::~MusicCommentsWidget ( )

Member Function Documentation

void MusicCommentsWidget::buttonClicked ( int  index)
slot
void MusicCommentsWidget::createCommentItem ( const MusicResultDataItem item)
slot
void MusicCommentsWidget::createEMOJILabelWidget ( )
slot

Create emoji label widget.

Definition at line 338 of file musiccommentswidget.cpp.

References currentEMOJIchanged().

Referenced by initialize().

void MusicCommentsWidget::createPageWidget ( )
protected
void MusicCommentsWidget::currentEMOJIchanged ( const QString &  data)
slot

Current EMOJI changed.

Definition at line 346 of file musiccommentswidget.cpp.

References m_messageEdit.

Referenced by createEMOJILabelWidget().

void MusicCommentsWidget::deleteCommentsItems ( )
protected

Delete comments items.

Definition at line 373 of file musiccommentswidget.cpp.

References m_commentsItems, and m_isPain.

Referenced by buttonClicked(), setCurrentSongName(), and ~MusicCommentsWidget().

void MusicCommentsWidget::initialize ( bool  isPain)
virtual
void MusicCommentsWidget::initLabel ( const QString &  name,
int  total 
)
protected

Int current comment label text.

Definition at line 366 of file musiccommentswidget.cpp.

References m_commentsLabel, and m_topLabel.

Referenced by initialize(), and setCurrentSongName().

void MusicCommentsWidget::mouseMoveEvent ( QMouseEvent *  event)
finaloverrideprotectedvirtual

Definition at line 356 of file musiccommentswidget.cpp.

void MusicCommentsWidget::mousePressEvent ( QMouseEvent *  event)
finaloverrideprotectedvirtual

Override the widget event.

Definition at line 351 of file musiccommentswidget.cpp.

void MusicCommentsWidget::mouseReleaseEvent ( QMouseEvent *  event)
finaloverrideprotectedvirtual

Definition at line 361 of file musiccommentswidget.cpp.

void MusicCommentsWidget::setCurrentSongName ( const QString &  name)

Member Data Documentation

QList<MusicCommentsItem*> MusicCommentsWidget::m_commentsItems
protected

Definition at line 133 of file musiccommentswidget.h.

Referenced by createCommentItem(), and deleteCommentsItems().

QLabel * MusicCommentsWidget::m_commentsLabel
protected

Definition at line 130 of file musiccommentswidget.h.

Referenced by initialize(), initLabel(), and ~MusicCommentsWidget().

bool MusicCommentsWidget::m_isPain
protected

Definition at line 128 of file musiccommentswidget.h.

Referenced by createCommentItem(), deleteCommentsItems(), and initialize().

QWidget* MusicCommentsWidget::m_messageComments
protected
QTextEdit* MusicCommentsWidget::m_messageEdit
protected

Definition at line 129 of file musiccommentswidget.h.

Referenced by currentEMOJIchanged(), initialize(), and ~MusicCommentsWidget().

MusicCommentsRequest* MusicCommentsWidget::m_networkRequest
protected
MusicPageQueryWidget* MusicCommentsWidget::m_pageQueryWidget
protected

Definition at line 132 of file musiccommentswidget.h.

Referenced by buttonClicked(), createPageWidget(), and ~MusicCommentsWidget().

QLabel* MusicCommentsWidget::m_topLabel
protected

Definition at line 130 of file musiccommentswidget.h.

Referenced by initialize(), initLabel(), and ~MusicCommentsWidget().


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