TTKMusicPlayer
4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the mobile songs table widget. More...
#include <musicmobilesongsmanagerwidget.h>
Public Slots | |
virtual void | itemCellEntered (int row, int column) overridefinal |
virtual void | removeItems () overridefinal |
virtual void | contextMenuEvent (QContextMenuEvent *event) overridefinal |
![]() | |
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 () |
![]() | |
void | timeToAnimation () |
void | valueChanged (int value) |
![]() | |
virtual void | itemCellEntered (int row, int column) |
virtual void | itemCellClicked (int row, int column) |
virtual void | removeItems () |
Public Member Functions | |
MusicMobileSongsTableWidget (QWidget *parent=nullptr) | |
~MusicMobileSongsTableWidget () | |
void | addCellItems (const QStringList &songs) |
![]() | |
MusicAbstractSongsListTableWidget (QWidget *parent=nullptr) | |
MusicAbstractSongsListTableWidget (int index, QWidget *parent=nullptr) | |
~MusicAbstractSongsListTableWidget () | |
virtual void | setSongsList (MusicSongList *songs) |
virtual void | updateSongsList (const MusicSongList &songs) |
virtual void | selectRow (int index) |
int | totalHeight () const |
void | setPlaylistRow (int index) |
void | setPlayRowIndex (int index) |
int | playRowIndex () const |
![]() | |
MusicSmoothMovingTableWidget (QWidget *parent=nullptr) | |
~MusicSmoothMovingTableWidget () | |
void | setMovedScrollBar (QScrollBar *bar=nullptr) |
![]() | |
MusicAbstractTableWidget (QWidget *parent=nullptr) | |
![]() | |
TTKAbstractTableWidget (QWidget *parent=nullptr) | |
~TTKAbstractTableWidget () | |
TTKIntList | selectedIndexList () const |
Additional Inherited Members | |
![]() | |
void | isCurrentPlaylistRow (bool &state) |
![]() | |
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 |
![]() | |
virtual void | leaveEvent (QEvent *event) override |
void | setRowColor (int row, const QColor &color) const |
bool | isValid () const |
![]() | |
int | m_playlistRow |
int | m_playRowIndex |
MusicSongList * | m_songs |
![]() | |
bool | m_initialized |
int | m_previousValue |
int | m_deltaValue |
QScrollBar * | m_scrollBar |
QTimer * | m_animationTimer |
QPropertyAnimation * | m_slowAnimation |
![]() | |
int | m_previousColorRow |
int | m_previousClickRow |
QColor | m_backgroundColor |
The class of the mobile songs table widget.
Definition at line 30 of file musicmobilesongsmanagerwidget.h.
|
explicit |
Object constructor.
Definition at line 7 of file musicmobilesongsmanagerwidget.cpp.
References MusicAbstractSongsListTableWidget::m_songs, and TTK::Widget::setTransparent().
MusicMobileSongsTableWidget::~MusicMobileSongsTableWidget | ( | ) |
Object destructor.
Definition at line 24 of file musicmobilesongsmanagerwidget.cpp.
References MusicAbstractSongsListTableWidget::m_songs, and removeItems().
void MusicMobileSongsTableWidget::addCellItems | ( | const QStringList & | songs | ) |
Create cell items by input data.
Definition at line 30 of file musicmobilesongsmanagerwidget.cpp.
References TTK::Widget::elidedText(), MusicAbstractSongsListTableWidget::m_songs, QtItemSetTextAlignment, TTK::Number::sizeByteToLabel(), and TTK_SPACE.
|
finaloverridevirtualslot |
Override the widget event.
Definition at line 86 of file musicmobilesongsmanagerwidget.cpp.
References MusicAbstractSongsListTableWidget::createMoreMenu(), MusicAbstractSongsListTableWidget::currentSongPath(), TTK::String::isNetworkUrl(), MusicAbstractSongsListTableWidget::m_songs, TTK::UI::MenuStyle02, MusicAbstractSongsListTableWidget::openFileDir(), MusicAbstractSongsListTableWidget::playClicked(), MusicAbstractSongsListTableWidget::showAlbumQueryWidget(), and MusicAbstractSongsListTableWidget::showFileInformation().
Table widget item cell enter.
Definition at line 67 of file musicmobilesongsmanagerwidget.cpp.
References TTKAbstractTableWidget::itemCellEntered().
|
finaloverridevirtualslot |
Remove all items.
Definition at line 80 of file musicmobilesongsmanagerwidget.cpp.
References MusicAbstractSongsListTableWidget::m_songs, and TTKAbstractTableWidget::removeItems().
Referenced by ~MusicMobileSongsTableWidget().