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 Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
MusicSongsListPlayedWidget Class Reference

The class of the song list played widget. More...

#include <musicsongslistplayedwidget.h>

+ Inheritance diagram for MusicSongsListPlayedWidget:

Public Slots

void removeItemAt ()
 

Signals

void enterChanged (int row, int column)
 

Public Member Functions

 MusicSongsListPlayedWidget (int index, QWidget *parent=nullptr)
 
 ~MusicSongsListPlayedWidget ()
 
void initialize (const QString &name)
 

Private Member Functions

virtual void enterEvent (QtEnterEvent *event) overridefinal
 
void createMoreMenu (QMenu *menu)
 

Private Attributes

int m_currentPlayIndex
 
QWidget * m_parent
 
QLabel * m_textLabel
 
MusicGifLabelWidgetm_gifLabel
 
QPushButton * m_deleteButton
 
QPushButton * m_downloadButton
 
QPushButton * m_moreButton
 

Detailed Description

The class of the song list played widget.

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

Definition at line 32 of file musicsongslistplayedwidget.h.

Constructor & Destructor Documentation

MusicSongsListPlayedWidget::MusicSongsListPlayedWidget ( int  index,
QWidget *  parent = nullptr 
)
explicit
MusicSongsListPlayedWidget::~MusicSongsListPlayedWidget ( )

Object destructor.

Definition at line 61 of file musicsongslistplayedwidget.cpp.

References m_deleteButton, m_downloadButton, m_gifLabel, m_moreButton, and m_textLabel.

Member Function Documentation

void MusicSongsListPlayedWidget::createMoreMenu ( QMenu *  menu)
private

Create more menu information.

Definition at line 88 of file musicsongslistplayedwidget.cpp.

References m_parent, and TTK::UI::MenuStyle02.

Referenced by MusicSongsListPlayedWidget().

void MusicSongsListPlayedWidget::enterChanged ( int  row,
int  column 
)
signal

Mouse is the item geometry.

Referenced by enterEvent(), and MusicSongsListPlayedWidget().

void MusicSongsListPlayedWidget::enterEvent ( QtEnterEvent event)
finaloverrideprivatevirtual

Override the widget event.

Definition at line 82 of file musicsongslistplayedwidget.cpp.

References enterChanged(), and m_currentPlayIndex.

void MusicSongsListPlayedWidget::initialize ( const QString &  name)

Update item artist label by name.

Definition at line 70 of file musicsongslistplayedwidget.cpp.

References TTK::Widget::elidedText(), m_gifLabel, m_textLabel, and MusicGifLabelWidget::start().

Referenced by MusicSongsListPlayedTableWidget::selectRow().

void MusicSongsListPlayedWidget::removeItemAt ( )
slot

Remove item from list at current row.

Definition at line 77 of file musicsongslistplayedwidget.cpp.

References m_parent, TTK_SIGNLE_SHOT, and TTK_SLOT.

Referenced by MusicSongsListPlayedWidget().

Member Data Documentation

int MusicSongsListPlayedWidget::m_currentPlayIndex
private

Definition at line 73 of file musicsongslistplayedwidget.h.

Referenced by enterEvent().

QPushButton* MusicSongsListPlayedWidget::m_deleteButton
private
QPushButton * MusicSongsListPlayedWidget::m_downloadButton
private
MusicGifLabelWidget* MusicSongsListPlayedWidget::m_gifLabel
private
QPushButton * MusicSongsListPlayedWidget::m_moreButton
private
QWidget* MusicSongsListPlayedWidget::m_parent
private
QLabel* MusicSongsListPlayedWidget::m_textLabel
private

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