TTKMusicPlayer
3.7.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 music dj radio category item widget. More...
#include <musicwebdjradiocategorywidget.h>
Public Slots | |
void | downLoadFinished (const QByteArray &bytes) |
void | currentItemClicked () |
Signals | |
void | currentItemClicked (const MusicResultDataItem &item) |
Signals inherited from TTKClickedLabel | |
void | clicked () |
Public Member Functions | |
MusicWebDJRadioCategoryItemWidget (QWidget *parent=nullptr) | |
~MusicWebDJRadioCategoryItemWidget () | |
void | setResultDataItem (const MusicResultDataItem &item) |
Public Member Functions inherited from TTKClickedLabel | |
TTKClickedLabel (QWidget *parent=nullptr) | |
TTKClickedLabel (const QString &text, QWidget *parent=nullptr) | |
Private Attributes | |
QLabel * | m_iconLabel |
QLabel * | m_nameLabel |
MusicResultDataItem | m_itemData |
The class of the music dj radio category item widget.
Definition at line 31 of file musicwebdjradiocategorywidget.h.
|
explicit |
Object constructor.
Definition at line 11 of file musicwebdjradiocategorywidget.cpp.
References TTKClickedLabel::clicked(), currentItemClicked(), HEIGHT_LABEL_SIZE, m_iconLabel, m_nameLabel, TTK_DEFAULT_STR, and WIDTH_LABEL_SIZE.
MusicWebDJRadioCategoryItemWidget::~MusicWebDJRadioCategoryItemWidget | ( | ) |
Object destructor.
Definition at line 27 of file musicwebdjradiocategorywidget.cpp.
References m_iconLabel, and m_nameLabel.
|
signal |
Current item clicked.
|
slot |
Current item clicked.
Definition at line 63 of file musicwebdjradiocategorywidget.cpp.
References m_itemData.
Referenced by MusicWebDJRadioCategoryItemWidget().
|
slot |
Send recieved data from net.
Definition at line 47 of file musicwebdjradiocategorywidget.cpp.
References m_iconLabel, TTK_ERROR_STREAM, and WIDTH_LABEL_SIZE.
Referenced by setResultDataItem().
void MusicWebDJRadioCategoryItemWidget::setResultDataItem | ( | const MusicResultDataItem & | item | ) |
Set music results item.
Definition at line 33 of file musicwebdjradiocategorywidget.cpp.
References downLoadFinished(), TTK::Widget::elidedText(), G_DOWNLOAD_QUERY_PTR, TTK::isCoverValid(), MusicResultDataItem::m_coverUrl, m_itemData, MusicResultDataItem::m_name, m_nameLabel, MusicCoverRequest::startToRequest(), and WIDTH_LABEL_SIZE.
Referenced by MusicWebDJRadioCategoryWidget::createCategoryItems().
|
private |
Definition at line 67 of file musicwebdjradiocategorywidget.h.
Referenced by downLoadFinished(), MusicWebDJRadioCategoryItemWidget(), and ~MusicWebDJRadioCategoryItemWidget().
|
private |
Definition at line 68 of file musicwebdjradiocategorywidget.h.
Referenced by currentItemClicked(), and setResultDataItem().
|
private |
Definition at line 67 of file musicwebdjradiocategorywidget.h.
Referenced by MusicWebDJRadioCategoryItemWidget(), setResultDataItem(), and ~MusicWebDJRadioCategoryItemWidget().