4 #ifndef pqDoubleLineEdit_h 5 #define pqDoubleLineEdit_h 8 #include <QScopedPointer> 40 Q_PROPERTY(
int precision READ precision WRITE setPrecision)
41 Q_PROPERTY(
bool useGlobalPrecisionAndNotation READ useGlobalPrecisionAndNotation WRITE
42 setUseGlobalPrecisionAndNotation)
70 int precision()
const;
77 bool useGlobalPrecisionAndNotation()
const;
86 static int globalPrecision();
94 QString simplifiedText()
const;
105 int precision,
int fullLowExponent = -6,
int fullHighExponent = 20);
118 void setPrecision(
int precision);
124 void setUseGlobalPrecisionAndNotation(
bool value);
127 void paintEvent(QPaintEvent* evt)
override;
128 void resizeEvent(QResizeEvent* event)
override;
133 static int GlobalPrecision;
137 QScopedPointer<pqInternals> Internals;
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'. ...