15 #ifndef pqDoubleSliderWidget_h 16 #define pqDoubleSliderWidget_h 22 class QDoubleValidator;
31 Q_PROPERTY(
double value READ value WRITE setValue USER
true)
32 Q_PROPERTY(
pqDoubleLineEdit::RealNumberNotation notation READ notation WRITE setNotation)
33 Q_PROPERTY(
int precision READ precision WRITE setPrecision)
34 Q_PROPERTY(
bool useGlobalPrecisionAndNotation READ useGlobalPrecisionAndNotation WRITE
35 setUseGlobalPrecisionAndNotation)
55 int precision() const;
62 bool useGlobalPrecisionAndNotation() const;
68 void valueChanged(
double);
76 void valueEdited(
double);
82 void setValue(
double val);
94 void setPrecision(
int precision);
100 void setUseGlobalPrecisionAndNotation(
bool value);
103 virtual
int valueToSliderPos(
double val);
104 virtual
double sliderPosToValue(
int pos);
105 void setValidator(QDoubleValidator* validator);
106 const QDoubleValidator* validator() const;
107 void setSliderRange(
int min,
int max);
111 void sliderChanged(
int val);
112 void textChanged(const QString& text);
113 void editingFinished();
114 void sliderPressed();
115 void sliderReleased();
116 void emitValueEdited();
117 void emitIfDeferredValueEdited();
124 bool InteractingWithSlider;
125 bool DeferredValueEdited;
pqLineEdit subclass that supports a low precision view when inactive