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 download record table widget. More...
#include <musicdownloadrecordwidget.h>
Public Member Functions | |
MusicDownloadRecordTableWidget (QWidget *parent=nullptr) | |
~MusicDownloadRecordTableWidget () | |
![]() | |
MusicAbstractDownloadTableWidget (QWidget *parent=nullptr) | |
~MusicAbstractDownloadTableWidget () | |
virtual void | updateSongsList (const MusicSongList &songs) overridefinal |
![]() | |
MusicAbstractSongsListTableWidget (QWidget *parent=nullptr) | |
~MusicAbstractSongsListTableWidget () | |
virtual void | setSongsList (MusicSongList *songs) |
virtual void | selectRow (int index) |
void | setPlaylistRow (int index) noexcept |
void | setPlayRowIndex (int index) noexcept |
int | playRowIndex () const noexcept |
![]() | |
MusicSmoothMovingTableWidget (QWidget *parent=nullptr) | |
void | setMovedScrollBar (QScrollBar *bar=nullptr) |
![]() | |
MusicAbstractTableWidget (QWidget *parent=nullptr) | |
![]() | |
TTKAbstractTableWidget (QWidget *parent=nullptr) | |
~TTKAbstractTableWidget () | |
TTKIntList | selectedIndexList () const |
Private Member Functions | |
virtual void | addCellItem (int index, const MusicSong &record) overridefinal |
Additional Inherited Members | |
![]() | |
virtual void | removeItemAt () overridefinal |
void | itemDoubleClicked (int row, int column) |
void | downloadProgressChanged (float percent, const QString &total, qint64 time) |
void | createDownloadItem (const QString &name, qint64 time) |
![]() | |
virtual void | removeItemAt () |
void | playClicked () |
void | clearItems () |
void | openFileDir () |
void | showFileInformation () |
void | showMovieQueryWidget () |
void | showAlbumQueryWidget () |
void | showSimilarQueryWidget () |
void | showSongSharedWidget () |
void | showDownloadWidget () |
void | showPlayedMovieQueryWidget () |
void | showPlayedSimilarQueryWidget () |
void | showPlayedSongSharedWidget () |
![]() | |
virtual void | itemCellEntered (int row, int column) |
virtual void | itemCellClicked (int row, int column) |
virtual void | removeItems () |
![]() | |
void | updateItemTitle (int index) |
![]() | |
void | isCurrentPlaylistRow (bool &state) |
![]() | |
virtual void | contextMenuEvent (QContextMenuEvent *event) override |
![]() | |
int | totalRowHeight () const |
void | createMoreMenu (QMenu *menu) |
QString | currentSongPath () const |
QString | songPath (int index) const |
QString | currentSongName () const |
QString | songName (int index) const |
![]() | |
virtual void | wheelEvent (QWheelEvent *event) override |
QScrollBar * | scrollBar () const noexcept |
![]() | |
virtual void | leaveEvent (QEvent *event) override |
void | setRowColor (int row, const QColor &color) const |
bool | isValid () const noexcept |
![]() | |
TTK::Record | m_type |
TTKProgressBarItemDelegate * | m_progressBarDelegate |
![]() | |
int | m_playlistRow |
int | m_playRowIndex |
MusicSongList * | m_songs |
![]() | |
int | m_previousColorRow |
int | m_previousClickRow |
QColor | m_backgroundColor |
The class of the download record table widget.
Definition at line 28 of file musicdownloadrecordwidget.h.
|
explicit |
Object constructor.
Definition at line 5 of file musicdownloadrecordwidget.cpp.
References G_CONNECTION_PTR, MusicAbstractDownloadTableWidget::m_progressBarDelegate, MusicAbstractDownloadTableWidget::m_type, TTK::NormalDownload, TTK::UI::ScrollBarStyle03, and TTK::Widget::setTransparent().
MusicDownloadRecordTableWidget::~MusicDownloadRecordTableWidget | ( | ) |
Object destructor.
Definition at line 26 of file musicdownloadrecordwidget.cpp.
References G_CONNECTION_PTR.
|
finaloverrideprivatevirtual |
Create cell item by input record.
Implements MusicAbstractDownloadTableWidget.
Definition at line 31 of file musicdownloadrecordwidget.cpp.
References MusicSong::addTimeStr(), TTK::UI::Color01, TTK::Widget::elidedText(), MusicSong::name(), QtItemSetTextAlignment, MusicSong::sizeStr(), MusicAbstractSongsListTableWidget::totalRowHeight(), TTK_PROGRESS_ROLE, and TTK_TIME_ROLE.