|
TTKMusicPlayer
4.2.0.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 item. More...
#include <musiccommentswidget.h>
Inheritance diagram for MusicCommentsItem:Public Member Functions | |
| MusicCommentsItem (QWidget *parent=nullptr) | |
| ~MusicCommentsItem () | |
| void | addCellItem (const MusicResultDataItem &item) |
Private Slots | |
| void | downLoadFinished (const QByteArray &bytes) |
Private Attributes | |
| QTextEdit * | m_userCommit |
| QLabel * | m_userName |
| QLabel * | m_timerLabel |
| QLabel * | m_iconLabel |
| QLabel * | m_starLabel |
The class of the song comment item.
Definition at line 31 of file musiccommentswidget.h.
|
explicit |
Object constructor.
Definition at line 13 of file musiccommentswidget.cpp.
References TTK::UI::BackgroundStyle01, TTK::UI::BorderStyle01, TTK::UI::BorderStyle04, TTK::UI::ColorStyle03, TTK::UI::ColorStyle04, TTK::UI::InteriorStar, m_iconLabel, m_starLabel, m_timerLabel, m_userCommit, and m_userName.
| MusicCommentsItem::~MusicCommentsItem | ( | ) |
Object destructor.
Definition at line 112 of file musiccommentswidget.cpp.
References m_iconLabel, m_starLabel, m_timerLabel, m_userCommit, and m_userName.
| void MusicCommentsItem::addCellItem | ( | const MusicResultDataItem & | item | ) |
Create cell item by input data.
Definition at line 121 of file musiccommentswidget.cpp.
References downLoadFinished(), TTK::Widget::fontTextWidth(), TTKDateTime::format(), G_DOWNLOAD_QUERY_PTR, MusicResultDataItem::m_count, MusicResultDataItem::m_coverUrl, MusicResultDataItem::m_description, MusicResultDataItem::m_nickName, m_starLabel, MusicResultDataItem::m_time, m_timerLabel, m_userCommit, m_userName, MusicCoverRequest::startToRequest(), and TTK_DATE_TIMES_FORMAT.
Referenced by MusicCommentsWidget::createCommentItem().
|
privateslot |
Download data from net finished.
Definition at line 135 of file musiccommentswidget.cpp.
References m_iconLabel, and TTK_ERROR_STREAM.
Referenced by addCellItem().
|
private |
Definition at line 59 of file musiccommentswidget.h.
Referenced by downLoadFinished(), MusicCommentsItem(), and ~MusicCommentsItem().
|
private |
Definition at line 59 of file musiccommentswidget.h.
Referenced by addCellItem(), MusicCommentsItem(), and ~MusicCommentsItem().
|
private |
Definition at line 58 of file musiccommentswidget.h.
Referenced by addCellItem(), MusicCommentsItem(), and ~MusicCommentsItem().
|
private |
Definition at line 57 of file musiccommentswidget.h.
Referenced by addCellItem(), MusicCommentsItem(), and ~MusicCommentsItem().
|
private |
Definition at line 58 of file musiccommentswidget.h.
Referenced by addCellItem(), MusicCommentsItem(), and ~MusicCommentsItem().
1.8.8