|
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 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 |
| MusicGifLabelWidget * | m_gifLabel |
| QPushButton * | m_deleteButton |
| QPushButton * | m_downloadButton |
| QPushButton * | m_moreButton |
The class of the song list played widget.
Definition at line 32 of file musicsongslistplayedwidget.h.
|
explicit |
Object constructor.
Definition at line 10 of file musicsongslistplayedwidget.cpp.
References TTK::UI::ColorStyle08, createMoreMenu(), enterChanged(), MusicLeftAreaWidget::instance(), m_deleteButton, m_downloadButton, m_gifLabel, m_moreButton, m_parent, m_textLabel, TTK::UI::PushButtonStyle10, MusicGifLabelWidget::RadioBlue, removeItemAt(), MusicGifLabelWidget::setInterval(), TTK::UI::TinyBtnDelete, TTK::UI::TinyBtnMore, TTK::UI::TinyBtnUnDownload, and TTK_DN_MS.
| MusicSongsListPlayedWidget::~MusicSongsListPlayedWidget | ( | ) |
Object destructor.
Definition at line 61 of file musicsongslistplayedwidget.cpp.
References m_deleteButton, m_downloadButton, m_gifLabel, m_moreButton, and m_textLabel.
|
private |
Create more menu information.
Definition at line 88 of file musicsongslistplayedwidget.cpp.
References m_parent, and TTK::UI::MenuStyle02.
Referenced by MusicSongsListPlayedWidget().
Mouse is the item geometry.
Referenced by enterEvent(), and MusicSongsListPlayedWidget().
|
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().
|
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().
|
private |
Definition at line 73 of file musicsongslistplayedwidget.h.
Referenced by enterEvent().
|
private |
Definition at line 77 of file musicsongslistplayedwidget.h.
Referenced by MusicSongsListPlayedWidget(), and ~MusicSongsListPlayedWidget().
|
private |
Definition at line 77 of file musicsongslistplayedwidget.h.
Referenced by MusicSongsListPlayedWidget(), and ~MusicSongsListPlayedWidget().
|
private |
Definition at line 76 of file musicsongslistplayedwidget.h.
Referenced by initialize(), MusicSongsListPlayedWidget(), and ~MusicSongsListPlayedWidget().
|
private |
Definition at line 77 of file musicsongslistplayedwidget.h.
Referenced by MusicSongsListPlayedWidget(), and ~MusicSongsListPlayedWidget().
|
private |
Definition at line 74 of file musicsongslistplayedwidget.h.
Referenced by createMoreMenu(), MusicSongsListPlayedWidget(), and removeItemAt().
|
private |
Definition at line 75 of file musicsongslistplayedwidget.h.
Referenced by initialize(), MusicSongsListPlayedWidget(), and ~MusicSongsListPlayedWidget().
1.8.8