qtDoubleUnitsLineEdit provides units-aware line edit double values
More...
#include <qtDoubleUnitsLineEdit.h>
|
enum | RealNumberNotation { MixedNotation = 0,
ScientificNotation,
FixedNotation
} |
| This enum specifies which notations to use for displaying the value.
|
|
using | Superclass = QLineEdit |
|
|
void | editingCompleted (QObject *) |
| Indicates that the user has finished editing and the appropriate units have been added to the value.
|
|
|
void | keyPressEvent (QKeyEvent *event) override |
|
void | paintEvent (QPaintEvent *evt) override |
|
void | resizeEvent (QResizeEvent *event) override |
|
void | focusOutEvent (QFocusEvent *event) override |
|
|
QPointer< qtInputsItem > | m_inputsItem |
|
units::Unit | m_unit |
|
QStringList | m_unitChoices |
|
QString | m_baseTooltip |
|
int | m_lastKey = -1 |
|
QCompleter * | m_completer = nullptr |
|
QScopedPointer< qtInternals > | m_internals |
|
qtDoubleUnitsLineEdit provides units-aware line edit double values
◆ baseToolTipText()
const QString& smtk::extension::qtDoubleUnitsLineEdit::baseToolTipText |
( |
| ) |
const |
|
inline |
Return the text that represents the widget's base tool-tip.
The text does not contain the item's converted value
◆ notation()
Return the notation used to display the number.
- See also
- setNotation()
◆ precision()
int smtk::extension::qtDoubleUnitsLineEdit::precision |
( |
| ) |
const |
Return the precision used to display the number.
- See also
- setPrecision()
◆ setNotation
Set the notation used to display the number.
- See also
- notation()
◆ setPrecision
void smtk::extension::qtDoubleUnitsLineEdit::setPrecision |
( |
int |
precision | ) |
|
|
slot |
Set the precision used to display the number.
- See also
- precision()
◆ simplifiedText()
QString smtk::extension::qtDoubleUnitsLineEdit::simplifiedText |
( |
| ) |
const |
Returns the text being shown when the widget is not active or under mouse pointer.
Primarily intended for test or debugging purposes.
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/smtk/checkouts/latest/smtk/extension/qt/qtDoubleUnitsLineEdit.h
- /home/docs/checkouts/readthedocs.org/user_builds/smtk/checkouts/latest/smtk/extension/qt/qtDoubleUnitsLineEdit.cxx