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 local manager songs table widget. More...
#include <musiclocalmanagerwidget.h>
Public Slots | |
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 () |
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 local manager songs table widget.
Definition at line 74 of file musiclocalmanagerwidget.h.
|
explicit |
Object constructor.
Definition at line 107 of file musiclocalmanagerwidget.cpp.
References MusicAbstractSongsListTableWidget::m_songs, and TTK::UI::ScrollBarStyle04.
MusicLocalManagerSongsTableWidget::~MusicLocalManagerSongsTableWidget | ( | ) |
Object destructor.
Definition at line 135 of file musiclocalmanagerwidget.cpp.
References MusicAbstractSongsListTableWidget::m_songs, and removeItems().
void MusicLocalManagerSongsTableWidget::addCellItems | ( | const MusicSongInfoItemList & | songs | ) |
Create cell items by input data.
Definition at line 141 of file musiclocalmanagerwidget.cpp.
References MusicSongInfoItem::m_album, MusicSongInfoItem::m_artist, MusicSongInfoItem::m_genre, MusicSongInfoItem::m_path, MusicAbstractSongsListTableWidget::m_songs, MusicSongInfoItem::m_title, MusicSongInfoItem::m_track, MusicSongInfoItem::m_year, and QtItemSetTextAlignment.
Referenced by MusicLocalManagerWidget::refreshItems(), and MusicLocalManagerWidget::searchResultChanged().
|
finaloverridevirtualslot |
Override the widget event.
Definition at line 211 of file musiclocalmanagerwidget.cpp.
References MusicAbstractSongsListTableWidget::createMoreMenu(), MusicAbstractSongsListTableWidget::currentSongPath(), TTK::String::isNetworkUrl(), MusicAbstractSongsListTableWidget::m_songs, TTK::UI::MenuStyle02, MusicAbstractSongsListTableWidget::openFileDir(), MusicAbstractSongsListTableWidget::playClicked(), MusicAbstractSongsListTableWidget::showAlbumQueryWidget(), and MusicAbstractSongsListTableWidget::showFileInformation().
|
finaloverridevirtualslot |
Remove all items.
Definition at line 205 of file musiclocalmanagerwidget.cpp.
References MusicAbstractSongsListTableWidget::m_songs, and TTKAbstractTableWidget::removeItems().
Referenced by MusicLocalManagerWidget::refreshItems(), MusicLocalManagerWidget::searchResultChanged(), and ~MusicLocalManagerSongsTableWidget().
void MusicLocalManagerSongsTableWidget::resizeSection | ( | ) | const |
Resize section bound by resize called.
Definition at line 195 of file musiclocalmanagerwidget.cpp.
References G_SETTING_PTR, MusicSettingManager::WidgetSize, and WINDOW_WIDTH_MIN.
Referenced by MusicLocalManagerWidget::resizeWidget().