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 lrc photo pixmap item. More...
#include <musiclrcphotomanagerwidget.h>
Public Member Functions | |
MusicLrcPhotoItem (QWidget *parent=nullptr) | |
void | updatePixmap (const QString &path) |
void | setSelected (bool v) |
bool | isSelected () const |
QString | path () const |
QString & | pathRef () |
Private Member Functions | |
virtual void | mousePressEvent (QMouseEvent *event) overridefinal |
virtual void | paintEvent (QPaintEvent *event) overridefinal |
Private Attributes | |
QString | m_path |
bool | m_isSelected |
The class of the lrc photo pixmap item.
Definition at line 28 of file musiclrcphotomanagerwidget.h.
|
explicit |
Object constructor.
Definition at line 8 of file musiclrcphotomanagerwidget.cpp.
|
inline |
Get current selected item state.
Definition at line 50 of file musiclrcphotomanagerwidget.h.
Referenced by MusicLrcPhotoWidget::deleteButtonClicked().
|
finaloverrideprivatevirtual |
Override the widget event.
Definition at line 27 of file musiclrcphotomanagerwidget.cpp.
References m_isSelected.
|
finaloverrideprivatevirtual |
Definition at line 34 of file musiclrcphotomanagerwidget.cpp.
References m_isSelected.
|
inline |
Get current item apth.
Definition at line 55 of file musiclrcphotomanagerwidget.h.
Referenced by MusicLrcPhotoWidget::deleteButtonClicked(), and updatePixmap().
|
inline |
Get current item apth.
Definition at line 59 of file musiclrcphotomanagerwidget.h.
Referenced by MusicLrcPhotoWidget::deleteButtonClicked().
void MusicLrcPhotoItem::setSelected | ( | bool | v | ) |
Select the current item.
Definition at line 22 of file musiclrcphotomanagerwidget.cpp.
References m_isSelected.
void MusicLrcPhotoItem::updatePixmap | ( | const QString & | path | ) |
Update pix image.
Definition at line 16 of file musiclrcphotomanagerwidget.cpp.
References m_path, and path().
Referenced by MusicLrcPhotoWidget::addCellItem().
|
private |
Definition at line 69 of file musiclrcphotomanagerwidget.h.
Referenced by mousePressEvent(), paintEvent(), and setSelected().
|
private |
Definition at line 68 of file musiclrcphotomanagerwidget.h.
Referenced by updatePixmap().