Sayonara Player
Signals | Public Member Functions | Protected Member Functions | List of all members
Gui::SearchSlider Class Reference

A slider as it is used by the progress bar You can also set a different value by calling set_buffering which is displayed in a different color when using the dark skin. More...

#include <SearchSlider.h>

Inheritance diagram for Gui::SearchSlider:
Gui::Slider

Signals

void sig_slider_moved (int)
 
void sigSliderGotFocus ()
 
void sigSliderLostFocus ()
 
void sigSliderHovered (int)
 

Public Member Functions

 SearchSlider (QWidget *parent=nullptr)
 
bool is_busy () const
 Returns true if it's actually moved by the user. More...
 
void set_buffering (int progress)
 Set a second value beside QSlider::setValue() which is displayed in another color. More...
 

Protected Member Functions

void mousePressEvent (QMouseEvent *e) override
 
void mouseReleaseEvent (QMouseEvent *e) override
 
void mouseMoveEvent (QMouseEvent *e) override
 
bool event (QEvent *event) override
 
bool hasAdditionalValue () const override
 
int additionalValue () const override
 
QColor additionalValueColor () const override
 
void sliderChange (SliderChange change) override
 
int valueFromPosition (const QPoint &pos) const
 
virtual void focusInEvent (QFocusEvent *e) override
 
virtual void focusOutEvent (QFocusEvent *e) override
 
void paintEvent (QPaintEvent *e) override
 

Detailed Description

A slider as it is used by the progress bar You can also set a different value by calling set_buffering which is displayed in a different color when using the dark skin.

Member Function Documentation

◆ is_busy()

bool Gui::SearchSlider::is_busy ( ) const

Returns true if it's actually moved by the user.

Returns

◆ set_buffering()

void Gui::SearchSlider::set_buffering ( int  progress)

Set a second value beside QSlider::setValue() which is displayed in another color.

Parameters
progress