3 #ifndef pqDoubleSliderWidget_h 4 #define pqDoubleSliderWidget_h 10 class QDoubleValidator;
19 Q_PROPERTY(
double value READ value WRITE setValue USER
true)
20 Q_PROPERTY(
pqDoubleLineEdit::RealNumberNotation notation READ notation WRITE setNotation)
21 Q_PROPERTY(
int precision READ precision WRITE setPrecision)
22 Q_PROPERTY(
bool useGlobalPrecisionAndNotation READ useGlobalPrecisionAndNotation WRITE
23 setUseGlobalPrecisionAndNotation)
43 int precision() const;
50 bool useGlobalPrecisionAndNotation() const;
56 void valueChanged(
double);
64 void valueEdited(
double);
70 void setValue(
double val);
82 void setPrecision(
int precision);
88 void setUseGlobalPrecisionAndNotation(
bool value);
91 virtual
int valueToSliderPos(
double val);
92 virtual
double sliderPosToValue(
int pos);
93 void setValidator(QDoubleValidator* validator);
94 const QDoubleValidator* validator() const;
95 void setSliderRange(
int min,
int max);
99 void sliderChanged(
int val);
100 void textChanged(const QString& text);
101 void editingFinished();
102 void sliderPressed();
103 void sliderReleased();
104 void emitValueEdited();
105 void emitIfDeferredValueEdited();
112 bool InteractingWithSlider;
113 bool DeferredValueEdited;
pqLineEdit subclass that supports a low precision view when inactive