Miam-Player  0.8.0
A nice music player
AlbumCover Class Reference

The AlbumCover class is used to manipulate cover albums inside music files. More...

#include <albumcover.h>

Inheritance diagram for AlbumCover:

Signals

void aboutToApplyCoverToAll (bool, Cover *)
 
void coverHasChanged (Cover *)
 

Public Member Functions

 AlbumCover (QWidget *parent=nullptr)
 
void resetCover ()
 
void setCover (Cover *cover)
 
void setCoverForSingleAlbum (bool isCoverForSingleAlbum)
 
void setAlbum (const QString &album)
 
QString album () const
 
QMenu * contextMenu () const
 

Protected Member Functions

void contextMenuEvent (QContextMenuEvent *event) override
 
void dragEnterEvent (QDragEnterEvent *event) override
 
void dragMoveEvent (QDragMoveEvent *event) override
 
void dropEvent (QDropEvent *event) override
 
void paintEvent (QPaintEvent *) override
 

Detailed Description

The AlbumCover class is used to manipulate cover albums inside music files.

Author
Matthieu Bachelier

Constructor & Destructor Documentation

AlbumCover::AlbumCover ( QWidget *  parent = nullptr)

Member Function Documentation

void AlbumCover::aboutToApplyCoverToAll ( bool  ,
Cover  
)
signal

This signal is sent to the TagEditorTableWidget class to apply the selected cover to the album only or to everything.

QString AlbumCover::album ( ) const
inline
QMenu* AlbumCover::contextMenu ( ) const
inline
void AlbumCover::contextMenuEvent ( QContextMenuEvent *  event)
overrideprotected

Redefined to display a small context menu in the view.

void AlbumCover::coverHasChanged ( Cover )
signal
void AlbumCover::dragEnterEvent ( QDragEnterEvent *  event)
overrideprotected

Redefined.

void AlbumCover::dragMoveEvent ( QDragMoveEvent *  event)
overrideprotected

Redefined.

void AlbumCover::dropEvent ( QDropEvent *  event)
overrideprotected

Allows one to drag & drop pictures from external software.

void AlbumCover::paintEvent ( QPaintEvent *  )
overrideprotected

Redefined to switch between images very quickly.

void AlbumCover::resetCover ( )

Puts a default picture in this widget.

void AlbumCover::setAlbum ( const QString &  album)
inline
void AlbumCover::setCover ( Cover cover)

Displays a cover in the tag editor.

void AlbumCover::setCoverForSingleAlbum ( bool  isCoverForSingleAlbum)
inline

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