#include <TYLineEdit.h>
|
| | TYLineEdit (const QString &contents, bool isZeroOK=true, bool canBeNegative=true, QWidget *parent=nullptr) |
| |
| | TYLineEdit (const QString &contents, QWidget *parent=nullptr) |
| |
| | TYLineEdit (QWidget *parent=nullptr) |
| |
| void | init () |
| |
| void | keyPressEvent (QKeyEvent *evt) |
| |
| void | connect () |
| |
Definition at line 32 of file TYLineEdit.h.
◆ TYLineEdit() [1/3]
| TYLineEdit::TYLineEdit |
( |
const QString & |
contents, |
|
|
bool |
isZeroOK = true, |
|
|
bool |
canBeNegative = true, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
◆ TYLineEdit() [2/3]
| TYLineEdit::TYLineEdit |
( |
const QString & |
contents, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
◆ TYLineEdit() [3/3]
| TYLineEdit::TYLineEdit |
( |
QWidget * |
parent = nullptr | ) |
|
◆ adjustTextColor
| void TYLineEdit::adjustTextColor |
( |
| ) |
|
|
slot |
If the text is not a double with at most 2 decimal numbers, it is colored red
Definition at line 85 of file TYLineEdit.cpp.
◆ connect()
| void TYLineEdit::connect |
( |
| ) |
|
Connect the signal'textChanged' with the slot 'adjustTextColor'
Definition at line 69 of file TYLineEdit.cpp.
◆ init()
| void TYLineEdit::init |
( |
| ) |
|
◆ keyPressEvent()
| void TYLineEdit::keyPressEvent |
( |
QKeyEvent * |
evt | ) |
|
overload the QLineEdit method If the key pressed is a coma, replace it with a point
Definition at line 74 of file TYLineEdit.cpp.
◆ _canBeNegative
| bool TYLineEdit::_canBeNegative = true |
|
private |
◆ _isZeroOK
| bool TYLineEdit::_isZeroOK = true |
|
private |
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/code-tympan-fbessou/checkouts/latest/Tympan/gui/widgets/TYLineEdit.h
- /home/docs/checkouts/readthedocs.org/user_builds/code-tympan-fbessou/checkouts/latest/Tympan/gui/widgets/TYLineEdit.cpp