TTKMusicPlayer  4.1.3.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 Attributes | List of all members
MusicDownloadResetWidget Class Reference

The class of the download file exist widget. More...

#include <musicdownloadmgmtwidget.h>

+ Inheritance diagram for MusicDownloadResetWidget:

Public Slots

void restartToRequest ()
 
void openFileLocation ()
 
- Public Slots inherited from MusicAbstractMoveWidget
void backgroundChanged ()
 
void show ()
 

Public Member Functions

 MusicDownloadResetWidget (QWidget *parent=nullptr)
 
 ~MusicDownloadResetWidget ()
 
void initialize (const QString &name)
 
- Public Member Functions inherited from MusicAbstractMoveWidget
 MusicAbstractMoveWidget (QWidget *parent=nullptr)
 
 MusicAbstractMoveWidget (bool transparent, QWidget *parent=nullptr)
 
 ~MusicAbstractMoveWidget ()
 
- Public Member Functions inherited from TTKAbstractMoveWidget
 TTKAbstractMoveWidget (QWidget *parent=nullptr)
 
 TTKAbstractMoveWidget (bool transparent, QWidget *parent=nullptr)
 
void drawWindowShadow (bool show)
 
void blockOption (bool block)
 

Private Attributes

Ui::MusicDownloadResetWidget * m_ui
 
QWidget * m_parent
 
QString m_currentName
 

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 Member Functions inherited from MusicWidgetRenderer
void setBackgroundPixmap (const QSize &size)
 
 MusicWidgetRenderer ()
 
void setBackgroundLabel (QLabel *label)
 
- Protected Attributes inherited from TTKAbstractMoveWidget
QPoint m_mousePressedAt
 
bool m_blockOption
 
bool m_shadowOption
 
bool m_mouseLeftPressed
 

Detailed Description

The class of the download file exist widget.

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

Definition at line 31 of file musicdownloadmgmtwidget.h.

Constructor & Destructor Documentation

MusicDownloadResetWidget::MusicDownloadResetWidget ( QWidget *  parent = nullptr)
explicit
MusicDownloadResetWidget::~MusicDownloadResetWidget ( )

Object destructor.

Definition at line 37 of file musicdownloadmgmtwidget.cpp.

References m_ui.

Member Function Documentation

void MusicDownloadResetWidget::initialize ( const QString &  name)

Set current name to search and download data.

Definition at line 42 of file musicdownloadmgmtwidget.cpp.

References m_currentName, and name.

Referenced by MusicDownloadMgmtWidget::initialize().

void MusicDownloadResetWidget::openFileLocation ( )
slot

Open file location in dir.

Definition at line 56 of file musicdownloadmgmtwidget.cpp.

References MusicApplication::containsDownloadItem(), MusicApplication::instance(), and TTK::Url::openUrl().

Referenced by MusicDownloadResetWidget().

void MusicDownloadResetWidget::restartToRequest ( )
slot

Restart to dwonload music data.

Definition at line 47 of file musicdownloadmgmtwidget.cpp.

References MusicDownloadWidget::initialize(), m_currentName, m_parent, and MusicAbstractMoveWidget::show().

Referenced by MusicDownloadResetWidget().

Member Data Documentation

QString MusicDownloadResetWidget::m_currentName
private

Definition at line 64 of file musicdownloadmgmtwidget.h.

Referenced by initialize(), and restartToRequest().

QWidget* MusicDownloadResetWidget::m_parent
private

Definition at line 63 of file musicdownloadmgmtwidget.h.

Referenced by restartToRequest().

Ui::MusicDownloadResetWidget* MusicDownloadResetWidget::m_ui
private

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