Miam-Player  0.8.0
A nice music player
MediaButton Class Reference

The MediaButton class is useful for buttons like "Play", "Stop", etc. More...

#include <mediabutton.h>

Inheritance diagram for MediaButton:
StopButton

Public Slots

void setIconFromTheme (const QString &)
 
void setSize (const int &)
 

Signals

void mediaButtonChanged ()
 

Public Member Functions

 MediaButton (QWidget *parent=nullptr)
 
virtual void setMediaPlayer (MediaPlayer *mediaPlayer)
 
void setIcon (const QIcon &)
 

Public Attributes

MediaPlayer_mediaPlayer
 

Protected Member Functions

virtual void paintEvent (QPaintEvent *) override
 

Detailed Description

The MediaButton class is useful for buttons like "Play", "Stop", etc.

Author
Matthieu Bachelier

Constructor & Destructor Documentation

MediaButton::MediaButton ( QWidget *  parent = nullptr)

Member Function Documentation

void MediaButton::mediaButtonChanged ( )
signal
void MediaButton::paintEvent ( QPaintEvent *  )
overrideprotectedvirtual
void MediaButton::setIcon ( const QIcon &  icon)

Redefined to load custom icons saved in settings.

void MediaButton::setIconFromTheme ( const QString &  theme)
slot

Load an icon from a chosen theme in options.

void MediaButton::setMediaPlayer ( MediaPlayer mediaPlayer)
virtual

Reimplemented in StopButton.

void MediaButton::setSize ( const int &  s)
slot

Change the size of icons from the options.

Member Data Documentation

MediaPlayer* MediaButton::_mediaPlayer

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