TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MusicSongsListItemInfoWidget Class Reference

The class of the song list item info widget. More...

#include <musicsongslistiteminfowidget.h>

+ Inheritance diagram for MusicSongsListItemInfoWidget:

Public Member Functions

 MusicSongsListItemInfoWidget (QWidget *parent=nullptr)
 
 ~MusicSongsListItemInfoWidget ()
 
void initialize (int index, const MusicSong &song)
 
- Public Member Functions inherited from TTKAbstractMoveWidget
 TTKAbstractMoveWidget (QWidget *parent=nullptr)
 
 TTKAbstractMoveWidget (bool transparent, QWidget *parent=nullptr)
 
void drawWindowShadow (bool show)
 
void blockMoveOption (bool block)
 

Private Member Functions

bool showArtistPicture (const QString &name)
 

Private Attributes

Ui::MusicSongsListItemInfoWidget * m_ui
 

Additional Inherited Members

- Protected Member Functions inherited from TTKAbstractMoveWidget
virtual void paintEvent (QPaintEvent *event) override
 
virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void mouseMoveEvent (QMouseEvent *event) override
 
virtual void mouseReleaseEvent (QMouseEvent *event) override
 
- Protected Attributes inherited from TTKAbstractMoveWidget
QPoint m_pressAt
 
bool m_moveOption
 
bool m_showShadow
 
bool m_leftButtonPress
 

Detailed Description

The class of the song list item info widget.

Author
Greedysky greed.nosp@m.ysky.nosp@m.@163..nosp@m.com

Definition at line 32 of file musicsongslistiteminfowidget.h.

Constructor & Destructor Documentation

MusicSongsListItemInfoWidget::MusicSongsListItemInfoWidget ( QWidget *  parent = nullptr)
explicit

Object constructor.

Definition at line 9 of file musicsongslistiteminfowidget.cpp.

References TTK::UI::ColorStyle03, and m_ui.

MusicSongsListItemInfoWidget::~MusicSongsListItemInfoWidget ( )

Object destructor.

Definition at line 25 of file musicsongslistiteminfowidget.cpp.

References m_ui.

Member Function Documentation

void MusicSongsListItemInfoWidget::initialize ( int  index,
const MusicSong song 
)
bool MusicSongsListItemInfoWidget::showArtistPicture ( const QString &  name)
private

Show artist small picture, if no exsit there is default pic.

Definition at line 30 of file musicsongslistiteminfowidget.cpp.

References ART_DIR_FULL, m_ui, and SKN_FILE.

Referenced by initialize().

Member Data Documentation

Ui::MusicSongsListItemInfoWidget* MusicSongsListItemInfoWidget::m_ui
private

The documentation for this class was generated from the following files: