Miam-Player  0.8.0
A nice music player
PlaybackModeWidget Class Reference

The PlaybackModeWidget class. More...

#include <playbackmodewidget.h>

Inheritance diagram for PlaybackModeWidget:

Public Member Functions

 PlaybackModeWidget (QMediaPlaylist::PlaybackMode mode, QPushButton *playbackModeButton=nullptr)
void adjustIcon ()
void animate (const QPoint &start, const QPoint &end)
QPushButton * button () const
QMediaPlaylist::PlaybackMode mode () const

Static Public Member Functions

static QString nameFromMode (QMediaPlaylist::PlaybackMode mode)

Detailed Description

The PlaybackModeWidget class.

Matthieu Bachelier

Constructor & Destructor Documentation

PlaybackModeWidget::PlaybackModeWidget ( QMediaPlaylist::PlaybackMode  mode,
QPushButton *  playbackModeButton = nullptr 

FIXME: use Qt::Popup to avoir flicker effect when one clicks. The problem is to manage multiple popups on screen It seems difficult to handle more than one popup

Member Function Documentation

void PlaybackModeWidget::adjustIcon ( )

Reload icon when theme has changed or buttons size was changed in options by one.

void PlaybackModeWidget::animate ( const QPoint &  start,
const QPoint &  end 

Animates this button in circle or in line.

QPushButton* PlaybackModeWidget::button ( ) const
QMediaPlaylist::PlaybackMode PlaybackModeWidget::mode ( ) const
QString PlaybackModeWidget::nameFromMode ( QMediaPlaylist::PlaybackMode  mode)

Convert Enum in QString to dynamically load icons.

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