4 #ifndef pqDoubleLineEdit_h 5 #define pqDoubleLineEdit_h 8 #include <QScopedPointer> 42 Q_PROPERTY(
int precision READ precision WRITE setPrecision)
43 Q_PROPERTY(
bool useGlobalPrecisionAndNotation READ useGlobalPrecisionAndNotation WRITE
44 setUseGlobalPrecisionAndNotation)
72 int precision()
const;
79 bool useGlobalPrecisionAndNotation()
const;
88 static int globalPrecision();
96 QString simplifiedText()
const;
106 "Use `pqDoubleLineEdit::formatDouble(double,pqDoubleLineEdit::RealNumberNotation,int)` instead")
107 static QString formatDouble(
119 int precision,
int fullLowExponent = -6,
int fullHighExponent = 20);
126 static QString formatDoubleUsingGlobalPrecisionAndNotation(
double value);
139 void setPrecision(
int precision);
145 void setUseGlobalPrecisionAndNotation(
bool value);
152 void setAlwaysUseFullPrecision(
bool value);
155 void paintEvent(QPaintEvent* evt) override;
156 void resizeEvent(QResizeEvent* event) override;
161 static
int GlobalPrecision;
165 QScopedPointer<pqInternals> Internals;
#define PARAVIEW_DEPRECATED_IN_5_12_0(reason)
RealNumberNotation
This enum specifies which notations to use for displaying the value.
pqLineEdit subclass that supports a low precision view when inactive
pqLineEdit is a specialization of QLineEdit which provide a new property 'text2'. ...
pqCoreUtilities is a collection of arbitrary utility functions that can be used by the application...