|
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 search popup table widget. More...
#include <musicsongsearchpopwidget.h>
Inheritance diagram for MusicSongSearchPopTableWidget:Public Slots | |
| virtual void | itemCellClicked (int row, int column) overridefinal |
| virtual void | removeItems () overridefinal |
Public Slots inherited from TTKAbstractTableWidget | |
| virtual void | itemCellEntered (int row, int column) |
| virtual void | itemCellClicked (int row, int column) |
| virtual void | removeItems () |
Signals | |
| void | setText (const QString &text, bool update) |
Public Member Functions | |
| MusicSongSearchPopTableWidget (QWidget *parent=nullptr) | |
| ~MusicSongSearchPopTableWidget () | |
| void | selectRow (bool up) |
| void | addCellItem (int index, const QString &name, const QString &time) |
Public Member Functions inherited from MusicAbstractTableWidget | |
| MusicAbstractTableWidget (QWidget *parent=nullptr) | |
Public Member Functions inherited from TTKAbstractTableWidget | |
| TTKAbstractTableWidget (QWidget *parent=nullptr) | |
| ~TTKAbstractTableWidget () | |
| TTKIntList | selectedIndexList () const |
Additional Inherited Members | |
Protected Member Functions inherited from TTKAbstractTableWidget | |
| virtual void | leaveEvent (QEvent *event) override |
| void | setRowColor (int row, const QColor &color) const |
| bool | isValid () const noexcept |
Protected Attributes inherited from TTKAbstractTableWidget | |
| int | m_previousColorRow |
| int | m_previousClickRow |
| QColor | m_backgroundColor |
The class of the search popup table widget.
Definition at line 29 of file musicsongsearchpopwidget.h.
|
explicit |
Object constructor.
Definition at line 7 of file musicsongsearchpopwidget.cpp.
References TTK::Widget::setTransparent().
| MusicSongSearchPopTableWidget::~MusicSongSearchPopTableWidget | ( | ) |
Object destructor.
Definition at line 19 of file musicsongsearchpopwidget.cpp.
References removeItems().
| void MusicSongSearchPopTableWidget::addCellItem | ( | int | index, |
| const QString & | name, | ||
| const QString & | time | ||
| ) |
Create cell item by input data.
Definition at line 54 of file musicsongsearchpopwidget.cpp.
References TTK::UI::Color02, TTK::Widget::elidedText(), QtItemSetTextAlignment, and TTK_ITEM_SIZE_M.
Referenced by MusicSongSearchPopWidget::addCellItems(), and MusicSongSearchPopWidget::initialize().
|
finaloverridevirtualslot |
Table widget item cell click.
Definition at line 71 of file musicsongsearchpopwidget.cpp.
References TTKAbstractTableWidget::itemCellClicked(), and setText().
|
finaloverridevirtualslot |
Remove all items.
Definition at line 77 of file musicsongsearchpopwidget.cpp.
References TTKAbstractTableWidget::removeItems().
Referenced by MusicSongSearchPopWidget::addCellItems(), MusicSongSearchPopWidget::initialize(), and ~MusicSongSearchPopTableWidget().
| void MusicSongSearchPopTableWidget::selectRow | ( | bool | up | ) |
Select search history table items.
Definition at line 24 of file musicsongsearchpopwidget.cpp.
References setText().
Referenced by MusicSongSearchPopWidget::selectRow().
|
signal |
User click the current item.
Referenced by itemCellClicked(), and selectRow().
1.8.8