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 dj radio music item widget. More...
#include <musicwebdjradioquerywidget.h>
Public Slots | |
void | downLoadFinished (const QByteArray &bytes) |
void | renderFinished (const QPixmap &data) |
void | currentItemClicked () |
Signals | |
void | currentItemClicked (const MusicResultDataItem &item) |
Public Member Functions | |
MusicWebDJRadioQueryItemWidget (QWidget *parent=nullptr) | |
~MusicWebDJRadioQueryItemWidget () | |
void | setResultDataItem (const MusicResultDataItem &item) |
Private Attributes | |
MusicResultDataItem | m_itemData |
QPushButton * | m_playButton |
QLabel * | m_iconLabel |
QLabel * | m_nameLabel |
QLabel * | m_creatorLabel |
The class of the dj radio music item widget.
Definition at line 31 of file musicwebdjradioquerywidget.h.
|
explicit |
Object constructor.
Definition at line 13 of file musicwebdjradioquerywidget.cpp.
References currentItemClicked(), HEIGHT_LABEL_SIZE, m_creatorLabel, m_iconLabel, m_nameLabel, m_playButton, TTK::UI::TinyBtnPlaylist, TTK_DEFAULT_STR, and WIDTH_LABEL_SIZE.
MusicWebDJRadioQueryItemWidget::~MusicWebDJRadioQueryItemWidget | ( | ) |
Object destructor.
Definition at line 40 of file musicwebdjradioquerywidget.cpp.
References m_creatorLabel, m_iconLabel, m_nameLabel, and m_playButton.
|
signal |
Current item clicked.
|
slot |
Current item clicked.
Definition at line 84 of file musicwebdjradioquerywidget.cpp.
References m_itemData.
Referenced by MusicWebDJRadioQueryItemWidget().
|
slot |
Download data from net finished.
Definition at line 64 of file musicwebdjradioquerywidget.cpp.
References m_iconLabel, renderFinished(), MusicImageRenderer::setInputData(), TTKAbstractThread::start(), and TTK_ERROR_STREAM.
Referenced by setResultDataItem().
|
slot |
Image render finished.
Definition at line 78 of file musicwebdjradioquerywidget.cpp.
References m_iconLabel, and m_playButton.
Referenced by downLoadFinished().
void MusicWebDJRadioQueryItemWidget::setResultDataItem | ( | const MusicResultDataItem & | item | ) |
Set music results item.
Definition at line 48 of file musicwebdjradioquerywidget.cpp.
References downLoadFinished(), TTK::Widget::elidedText(), G_DOWNLOAD_QUERY_PTR, TTK::isCoverValid(), MusicResultDataItem::m_coverUrl, m_creatorLabel, m_itemData, MusicResultDataItem::m_name, m_nameLabel, MusicResultDataItem::m_nickName, MusicCoverRequest::startToRequest(), and WIDTH_LABEL_SIZE.
Referenced by MusicWebDJRadioQueryWidget::createProgramItem().
|
private |
Definition at line 73 of file musicwebdjradioquerywidget.h.
Referenced by MusicWebDJRadioQueryItemWidget(), setResultDataItem(), and ~MusicWebDJRadioQueryItemWidget().
|
private |
Definition at line 73 of file musicwebdjradioquerywidget.h.
Referenced by downLoadFinished(), MusicWebDJRadioQueryItemWidget(), renderFinished(), and ~MusicWebDJRadioQueryItemWidget().
|
private |
Definition at line 71 of file musicwebdjradioquerywidget.h.
Referenced by currentItemClicked(), and setResultDataItem().
|
private |
Definition at line 73 of file musicwebdjradioquerywidget.h.
Referenced by MusicWebDJRadioQueryItemWidget(), setResultDataItem(), and ~MusicWebDJRadioQueryItemWidget().
|
private |
Definition at line 72 of file musicwebdjradioquerywidget.h.
Referenced by MusicWebDJRadioQueryItemWidget(), renderFinished(), and ~MusicWebDJRadioQueryItemWidget().