Sayonara Player
Signals | Public Member Functions | Public Slots | Protected Member Functions | Protected Attributes | List of all members
CoverButton Class Reference

#include <CoverButton.h>

Detailed Description

The CoverButton class.

Signals

void sig_rejected ()
 

Public Member Functions

 CoverButton (QWidget *parent=nullptr)
 
void set_cover_location (const Cover::Location &cl)
 Set an appropriate cover location. Afterwards a search is triggered to find the cover. More...
 
void force_cover (const QImage &img)
 Force a cover in order to override a searched cover. This is intended if the audio file contains a cover itself. More...
 
void force_cover (const QPixmap &img)
 Force a cover in order to override a searched cover. This is intended if the audio file contains a cover itself. More...
 
void set_size (int hw)
 
virtual void language_changed ()
 
virtual void skin_changed ()
 
virtual void showEvent (QShowEvent *e) override
 

Public Slots

void refresh ()
 

Protected Member Functions

void resizeEvent (QResizeEvent *e) override
 

Protected Attributes

Settings_settings =nullptr
 

Member Function Documentation

§ force_cover() [1/2]

void CoverButton::force_cover ( const QImage &  img)

Force a cover in order to override a searched cover. This is intended if the audio file contains a cover itself.

Parameters
img

§ force_cover() [2/2]

void CoverButton::force_cover ( const QPixmap &  img)

Force a cover in order to override a searched cover. This is intended if the audio file contains a cover itself.

Parameters
img

§ set_cover_location()

void CoverButton::set_cover_location ( const Cover::Location cl)

Set an appropriate cover location. Afterwards a search is triggered to find the cover.

Parameters
cl
Inheritance diagram for CoverButton:
Gui::WidgetTemplate< QPushButton > SayonaraClass