TTKMusicPlayer
4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the song comment widget. More...
#include <musiccommentswidget.h>
Public Slots | |
void | createCommentItem (const MusicResultDataItem &item) |
void | buttonClicked (int index) |
Public Member Functions | |
MusicCommentsWidget (QWidget *parent=nullptr) | |
~MusicCommentsWidget () | |
virtual void | initialize (bool plain) |
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_plain |
QLabel * | m_topLabel |
QLabel * | m_commentsLabel |
QWidget * | m_messageComments |
MusicPageQueryWidget * | m_pageQueryWidget |
QList< MusicCommentsItem * > | m_commentsItems |
MusicCommentsRequest * | m_networkRequest |
The class of the song comment widget.
Definition at line 67 of file musiccommentswidget.h.
|
explicit |
Object constructor.
Definition at line 150 of file musiccommentswidget.cpp.
MusicCommentsWidget::~MusicCommentsWidget | ( | ) |
Object destructor.
Definition at line 162 of file musiccommentswidget.cpp.
References deleteCommentsItems(), m_commentsLabel, m_messageComments, m_networkRequest, m_pageQueryWidget, and m_topLabel.
|
slot |
Page widget button has changed.
Definition at line 297 of file musiccommentswidget.cpp.
References MusicPageQueryWidget::currentIndex(), deleteCommentsItems(), m_networkRequest, m_pageQueryWidget, MusicPageQueryWidget::page(), MusicPageQueryRequest::pageTotalSize(), and MusicPageQueryRequest::startToPage().
Referenced by createPageWidget().
|
slot |
Create the current song comment.
Definition at line 282 of file musiccommentswidget.cpp.
References MusicCommentsItem::addCellItem(), m_commentsItems, m_messageComments, m_plain, and TTKObjectCast.
Referenced by MusicLrcCommentsWidget::initialize(), and MusicPlaylistQueryCommentsWidget::initialize().
|
protected |
Create page items.
Definition at line 338 of file musiccommentswidget.cpp.
References buttonClicked(), MusicPageQueryWidget::createPageWidget(), m_messageComments, m_networkRequest, m_pageQueryWidget, and MusicPageQueryRequest::pageTotalSize().
Referenced by setCurrentSongName().
|
protected |
Delete comments items.
Definition at line 327 of file musiccommentswidget.cpp.
References m_commentsItems, and m_plain.
Referenced by buttonClicked(), setCurrentSongName(), and ~MusicCommentsWidget().
|
virtual |
Init widget.
Reimplemented in MusicLrcCommentsWidget, and MusicPlaylistQueryCommentsWidget.
Definition at line 172 of file musiccommentswidget.cpp.
References TTK::UI::BackgroundStyle01, TTK::UI::BackgroundStyle07, TTK::UI::BtnPClose, TTK::UI::ColorStyle03, TTK::UI::ColorStyle04, TTK::Widget::generateVScrollAreaStyle(), initLabel(), m_commentsLabel, m_messageComments, m_plain, and m_topLabel.
Referenced by MusicLrcCommentsWidget::initialize(), and MusicPlaylistQueryCommentsWidget::initialize().
Int current comment label text.
Definition at line 320 of file musiccommentswidget.cpp.
References m_commentsLabel, and m_topLabel.
Referenced by initialize(), and setCurrentSongName().
|
finaloverrideprotectedvirtual |
Definition at line 310 of file musiccommentswidget.cpp.
|
finaloverrideprotectedvirtual |
Override the widget event.
Definition at line 305 of file musiccommentswidget.cpp.
|
finaloverrideprotectedvirtual |
Definition at line 315 of file musiccommentswidget.cpp.
void MusicCommentsWidget::setCurrentSongName | ( | const QString & | name | ) |
Set current song name.
Definition at line 267 of file musiccommentswidget.cpp.
References createPageWidget(), deleteCommentsItems(), TTKSemaphoreLoop::exec(), initLabel(), m_messageComments, m_networkRequest, MusicCommentsRequest::startToSearch(), MusicPageQueryRequest::totalSize(), and TTKObjectCast.
Referenced by MusicPlaylistQueryInfoWidget::setCurrentIndex(), and MusicLrcContainerForInterior::showSongCommentsWidget().
|
protected |
Definition at line 124 of file musiccommentswidget.h.
Referenced by createCommentItem(), and deleteCommentsItems().
|
protected |
Definition at line 121 of file musiccommentswidget.h.
Referenced by initialize(), initLabel(), and ~MusicCommentsWidget().
|
protected |
Definition at line 122 of file musiccommentswidget.h.
Referenced by createCommentItem(), createPageWidget(), initialize(), setCurrentSongName(), and ~MusicCommentsWidget().
|
protected |
Definition at line 125 of file musiccommentswidget.h.
Referenced by buttonClicked(), createPageWidget(), MusicLrcCommentsWidget::initialize(), MusicPlaylistQueryCommentsWidget::initialize(), setCurrentSongName(), and ~MusicCommentsWidget().
|
protected |
Definition at line 123 of file musiccommentswidget.h.
Referenced by buttonClicked(), createPageWidget(), and ~MusicCommentsWidget().
|
protected |
Definition at line 120 of file musiccommentswidget.h.
Referenced by createCommentItem(), deleteCommentsItems(), and initialize().
|
protected |
Definition at line 121 of file musiccommentswidget.h.
Referenced by initialize(), initLabel(), and ~MusicCommentsWidget().