32 #ifndef pqDoubleLineEdit_h 33 #define pqDoubleLineEdit_h 36 #include <QScopedPointer> 37 #include <QTextStream> 65 Q_PROPERTY(
int precision READ precision WRITE setPrecision)
66 Q_PROPERTY(
bool useGlobalPrecisionAndNotation READ useGlobalPrecisionAndNotation WRITE
67 setUseGlobalPrecisionAndNotation)
94 int precision()
const;
101 bool useGlobalPrecisionAndNotation()
const;
109 static void setGlobalPrecisionAndNotation(
int precision,
RealNumberNotation notation);
110 static int globalPrecision();
118 QString simplifiedText()
const;
125 static QString formatDouble(
126 double value, QTextStream::RealNumberNotation notation,
int precision);
127 static QString formatDouble(
136 static QString formatDoubleUsingGlobalPrecisionAndNotation(
double value);
150 void setPrecision(
int precision);
156 void setUseGlobalPrecisionAndNotation(
bool value);
159 void paintEvent(QPaintEvent* evt)
override;
160 void resizeEvent(QResizeEvent* event)
override;
165 static int GlobalPrecision;
169 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'. ...