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 song check tools duplicate table widget. More...
#include <musicsongchecktoolstablewidget.h>
Public Slots | |
virtual void | itemCellClicked (int row, int column) overridefinal |
![]() | |
virtual void | itemCellClicked (int row, int column) override |
void | checkedItemsState (bool checked) |
void | checkedItemsStatus (bool checked) |
![]() | |
virtual void | itemCellEntered (int row, int column) |
virtual void | itemCellClicked (int row, int column) |
virtual void | removeItems () |
Public Member Functions | |
MusicSongCheckToolsDuplicateTableWidget (QWidget *parent=nullptr) | |
void | addCellItems (const MusicSongCheckToolsDuplicateList &songs) |
![]() | |
MusicFillItemTableWidget (QWidget *parent=nullptr) | |
~MusicFillItemTableWidget () | |
TTKIntList | checkedIndexList () const |
TTKIntList | uncheckedIndexList () const |
![]() | |
MusicAbstractTableWidget (QWidget *parent=nullptr) | |
![]() | |
TTKAbstractTableWidget (QWidget *parent=nullptr) | |
~TTKAbstractTableWidget () | |
TTKIntList | selectedIndexList () const |
Private Member Functions | |
void | playSong () |
void | removeCurrentRow () |
Additional Inherited Members | |
![]() | |
virtual void | leaveEvent (QEvent *event) override |
void | setRowColor (int row, const QColor &color) const |
bool | isValid () const |
![]() | |
TTKCheckBoxItemDelegate * | m_checkBoxDelegate |
![]() | |
int | m_previousColorRow |
int | m_previousClickRow |
QColor | m_backgroundColor |
The class of the song check tools duplicate table widget.
Definition at line 62 of file musicsongchecktoolstablewidget.h.
|
explicit |
Object constructor.
Definition at line 84 of file musicsongchecktoolstablewidget.cpp.
References makeButtonItemDelegate().
void MusicSongCheckToolsDuplicateTableWidget::addCellItems | ( | const MusicSongCheckToolsDuplicateList & | songs | ) |
Create cell items by input data.
Definition at line 108 of file musicsongchecktoolstablewidget.cpp.
References MusicSong::duration(), TTK::Widget::elidedText(), MusicSongCheckToolsDuplicate::m_bitrate, MusicSongCheckToolsDuplicate::m_song, MusicSong::name(), MusicSong::path(), QtItemSetTextAlignment, MusicSong::sizeStr(), TTK_CHECKED_ROLE, TTK_DATA_ROLE, and TTK_DISPLAY_ROLE.
|
finaloverridevirtualslot |
Table widget item cell click.
Definition at line 153 of file musicsongchecktoolstablewidget.cpp.
References MusicFillItemTableWidget::itemCellClicked(), playSong(), and removeCurrentRow().
|
private |
Add selected music song path to list.
Definition at line 164 of file musicsongchecktoolstablewidget.cpp.
References MusicSongsContainerWidget::addSongToPlaylist(), MusicSongsContainerWidget::instance(), TTKAbstractTableWidget::isValid(), and TTK_DATA_ROLE.
Referenced by itemCellClicked().
|
private |
Remove current selected row.
Definition at line 179 of file musicsongchecktoolstablewidget.cpp.
References TTKAbstractTableWidget::isValid().
Referenced by itemCellClicked().