Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
pqScaledSpinBox Class Reference

Identical to a QDoubleSpinBox, but doubles/halves the value upon button presses. More...

#include <pqScaledSpinBox.h>

Inherits QDoubleSpinBox.

Public Slots

void setValue (double val)
 Overrides QDoubleSpinBox::setValue() More...
 

Public Member Functions

 pqScaledSpinBox (QWidget *parent=nullptr)
 Constructor. More...
 
 pqScaledSpinBox (QDoubleSpinBox *other)
 Copy constructor. More...
 
 ~pqScaledSpinBox () override
 Destructor. More...
 
void setScalingFactor (double scaleFactor)
 Sets the Scale Factor used to increase / decrease the widget value. More...
 

Protected Slots

void onValueChanged (double newValue)
 

Protected Member Functions

void keyPressEvent (QKeyEvent *event) override
 Overrides QDoubleSpinBox::keyPressEvent() More...
 

Detailed Description

Identical to a QDoubleSpinBox, but doubles/halves the value upon button presses.

Definition at line 14 of file pqScaledSpinBox.h.

Constructor & Destructor Documentation

◆ pqScaledSpinBox() [1/2]

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

Constructor.

◆ pqScaledSpinBox() [2/2]

pqScaledSpinBox::pqScaledSpinBox ( QDoubleSpinBox *  other)
explicit

Copy constructor.

◆ ~pqScaledSpinBox()

pqScaledSpinBox::~pqScaledSpinBox ( )
override

Destructor.

Member Function Documentation

◆ setValue

void pqScaledSpinBox::setValue ( double  val)
slot

Overrides QDoubleSpinBox::setValue()

◆ setScalingFactor()

void pqScaledSpinBox::setScalingFactor ( double  scaleFactor)

Sets the Scale Factor used to increase / decrease the widget value.

When scaling up, the value is multiplied by the Scale Factor. When scaling down, the value is divided by the Scale Factor.

◆ keyPressEvent()

void pqScaledSpinBox::keyPressEvent ( QKeyEvent *  event)
overrideprotected

Overrides QDoubleSpinBox::keyPressEvent()

◆ onValueChanged

void pqScaledSpinBox::onValueChanged ( double  newValue)
protectedslot

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