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 Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
MusicLrcPhotoWidget Class Reference

The class of the lrc photo widget. More...

#include <musiclrcphotomanagerwidget.h>

+ Inheritance diagram for MusicLrcPhotoWidget:

Public Slots

void addButtonClicked ()
 
void deleteButtonClicked ()
 
void exportButtonClicked ()
 

Public Member Functions

 MusicLrcPhotoWidget (QWidget *parent=nullptr)
 
 ~MusicLrcPhotoWidget ()
 
void addCellItem (const QString &path)
 

Private Member Functions

void initialize ()
 
bool isValid () const
 

Private Attributes

QGridLayout * m_gridLayout
 
QList< MusicLrcPhotoItem * > m_items
 

Detailed Description

The class of the lrc photo widget.

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

Definition at line 77 of file musiclrcphotomanagerwidget.h.

Constructor & Destructor Documentation

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

Object constructor.

Definition at line 46 of file musiclrcphotomanagerwidget.cpp.

References initialize(), and m_gridLayout.

MusicLrcPhotoWidget::~MusicLrcPhotoWidget ( )

Object destructor.

Definition at line 57 of file musiclrcphotomanagerwidget.cpp.

References m_gridLayout, and m_items.

Member Function Documentation

void MusicLrcPhotoWidget::addButtonClicked ( )
slot
void MusicLrcPhotoWidget::addCellItem ( const QString &  path)

Create cell item by input data.

Definition at line 63 of file musiclrcphotomanagerwidget.cpp.

References m_gridLayout, m_items, MIN_ITEM_COUNT, and MusicLrcPhotoItem::updatePixmap().

Referenced by addButtonClicked(), and initialize().

void MusicLrcPhotoWidget::deleteButtonClicked ( )
slot
void MusicLrcPhotoWidget::exportButtonClicked ( )
slot
void MusicLrcPhotoWidget::initialize ( )
private

Create all widget in layout.

Definition at line 165 of file musiclrcphotomanagerwidget.cpp.

References addCellItem(), BACKGROUND_DIR_FULL, G_BACKGROUND_PTR, and name.

Referenced by MusicLrcPhotoWidget().

bool MusicLrcPhotoWidget::isValid ( ) const
private

Check current selection is valid or not.

Definition at line 180 of file musiclrcphotomanagerwidget.cpp.

References m_items, and qAsConst.

Referenced by deleteButtonClicked(), and exportButtonClicked().

Member Data Documentation

QGridLayout* MusicLrcPhotoWidget::m_gridLayout
private
QList<MusicLrcPhotoItem*> MusicLrcPhotoWidget::m_items
private

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