Loading...
Searching...
No Matches

The DoubleSlider class. More...

Inheritance diagram for score::DoubleSlider:
Mixer::AudioSliderWidget Mixer::PanSliderWidget score::SpeedSlider score::ValueDoubleSlider score::ValueLogDoubleSlider score::VolumeSlider

Detailed Description

The DoubleSlider class.

  • *- *
  • * Always between 0. - 1.
  • * min and max properties are for value display purpose only

Public Member Functions

 DoubleSlider (Qt::Orientation ort, QWidget *widg)
 
 DoubleSlider (QWidget *widg)
 
void setValue (double val)
 
void setOrientation (Qt::Orientation ort)
 
void setBorderWidth (double border)
 
double value () const
 
virtual double map (double v) const
 
virtual double unmap (double v) const
 
void valueChanged (double arg_1)
 
void sliderMoved (double arg_1)
 
void sliderReleased ()
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void mouseDoubleClickEvent (QMouseEvent *event) override
 
virtual void createPopup (QPoint pos)
 
virtual void setRange (double min, double max, double init) noexcept
 
int skinExtent () const noexcept
 

Public Attributes

bool moving = false
 
double min {}
 
double max {}
 
double init {}
 

Protected Member Functions

void updateSkinMetrics ()
 Sizes the control from one line of the slider font.
 
void paintEvent (QPaintEvent *) override
 
void paint (QPainter &p)
 
void paintWithText (const QString &s)
 

Member Function Documentation

◆ skinExtent()

int score::DoubleSlider::skinExtent ( ) const
noexcept

Thickness of one line of the slider font: the height of a horizontal slider, the width of a vertical one. A caller pinning the control with setFixedSize should size it from here.


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