Miam-Player  0.8.0
A nice music player
SeekBar Class Reference

The SeekBar class is used to display a nice seek bar instead of default slider. More...

#include <seekbar.h>

Inheritance diagram for SeekBar:
MiamSlider

Public Member Functions

 SeekBar (QWidget *parent=nullptr)
 
void setMediaPlayer (MediaPlayer *mediaPlayer)
 
- Public Member Functions inherited from MiamSlider
 MiamSlider (QWidget *parent=nullptr)
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *e) override
 
virtual void keyReleaseEvent (QKeyEvent *e) override
 
virtual void mouseMoveEvent (QMouseEvent *) override
 
virtual void mousePressEvent (QMouseEvent *) override
 
virtual void mouseReleaseEvent (QMouseEvent *) override
 
virtual void paintEvent (QPaintEvent *) override
 
virtual void wheelEvent (QWheelEvent *e) override
 
- Protected Member Functions inherited from MiamSlider
QLinearGradient interpolatedLinearGradient (const QRectF &boudingRect, QStyleOptionSlider &o)
 

Detailed Description

The SeekBar class is used to display a nice seek bar instead of default slider.

Author
Matthieu Bachelier

Constructor & Destructor Documentation

SeekBar::SeekBar ( QWidget *  parent = nullptr)
explicit

Member Function Documentation

void SeekBar::keyPressEvent ( QKeyEvent *  e)
overrideprotectedvirtual

Redefined to seek in current playing file.

void SeekBar::keyReleaseEvent ( QKeyEvent *  e)
overrideprotectedvirtual
void SeekBar::mouseMoveEvent ( QMouseEvent *  )
overrideprotectedvirtual
void SeekBar::mousePressEvent ( QMouseEvent *  )
overrideprotectedvirtual
void SeekBar::mouseReleaseEvent ( QMouseEvent *  )
overrideprotectedvirtual
void SeekBar::paintEvent ( QPaintEvent *  )
overrideprotectedvirtual

Reimplemented from MiamSlider.

void SeekBar::setMediaPlayer ( MediaPlayer mediaPlayer)
void SeekBar::wheelEvent ( QWheelEvent *  e)
overrideprotectedvirtual

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