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 Member Functions | Private Attributes | List of all members
MusicDownloadTableItem Class Reference

The class of the download table item. More...

#include <musicdownloadwidget.h>

+ Inheritance diagram for MusicDownloadTableItem:

Public Member Functions

 MusicDownloadTableItem (QWidget *parent=nullptr)
 
 ~MusicDownloadTableItem ()
 
void setIcon (const QString &name)
 
void setInformation (const QString &info)
 
void setText (const QString &text)
 

Private Attributes

QLabel * m_text
 
QLabel * m_information
 
QLabel * m_icon
 

Detailed Description

The class of the download table item.

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

Definition at line 35 of file musicdownloadwidget.h.

Constructor & Destructor Documentation

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

Object constructor.

Definition at line 10 of file musicdownloadwidget.cpp.

References m_icon, m_information, m_text, and TTK_ITEM_SIZE_S.

MusicDownloadTableItem::~MusicDownloadTableItem ( )

Object destructor.

Definition at line 22 of file musicdownloadwidget.cpp.

References m_icon, m_information, and m_text.

Member Function Documentation

void MusicDownloadTableItem::setIcon ( const QString &  name)

Set current item icon.

Definition at line 29 of file musicdownloadwidget.cpp.

References m_icon.

Referenced by MusicDownloadTableWidget::addCellItem().

void MusicDownloadTableItem::setInformation ( const QString &  info)

Set current item other infomation(size and type and time).

Definition at line 34 of file musicdownloadwidget.cpp.

References m_information.

Referenced by MusicDownloadTableWidget::addCellItem().

void MusicDownloadTableItem::setText ( const QString &  text)

Set current item text name.

Definition at line 39 of file musicdownloadwidget.cpp.

References m_text.

Referenced by MusicDownloadTableWidget::addCellItem().

Member Data Documentation

QLabel * MusicDownloadTableItem::m_icon
private

Definition at line 63 of file musicdownloadwidget.h.

Referenced by MusicDownloadTableItem(), setIcon(), and ~MusicDownloadTableItem().

QLabel * MusicDownloadTableItem::m_information
private
QLabel* MusicDownloadTableItem::m_text
private

Definition at line 63 of file musicdownloadwidget.h.

Referenced by MusicDownloadTableItem(), setText(), and ~MusicDownloadTableItem().


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