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 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 () |
![]() | |
virtual void | itemCellEntered (int row, int column) |
virtual void | itemCellClicked (int row, int column) |
virtual void | removeItems () |
Public Member Functions | |
MusicLocalManagerSongsTableWidget (QWidget *parent=nullptr) | |
~MusicLocalManagerSongsTableWidget () | |
void | addCellItems (const MusicSongInfoItemList &songs) |
void | resizeSection () const |
![]() | |
MusicAbstractSongsListTableWidget (QWidget *parent=nullptr) | |
~MusicAbstractSongsListTableWidget () | |
virtual void | setSongsList (MusicSongList *songs) |
virtual void | updateSongsList (const 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 |
Additional Inherited Members | |
![]() | |
void | isCurrentPlaylistRow (bool &state) |
![]() | |
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 |
![]() | |
int | m_playlistRow |
int | m_playRowIndex |
MusicSongList * | m_songs |
![]() | |
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().