|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
#include <TYInputDialog.h>


Public Slots | |
| void | adjustTextColor () |
| void | adjustDecimal () |
Public Member Functions | |
| TYInputDialog (bool isZeroOK=true, QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags()) | |
| void | connect () |
| bool | eventFilter (QObject *object, QEvent *event) override |
Definition at line 29 of file TYInputDialog.h.
| TYInputDialog::TYInputDialog | ( | bool | isZeroOK = true, |
| QWidget * | parent = nullptr, |
||
| Qt::WindowFlags | flags = Qt::WindowFlags() |
||
| ) |
Constructor
Definition at line 29 of file TYInputDialog.cpp.

|
slot |
If the text include a coma, it is changed into a point
Definition at line 50 of file TYInputDialog.cpp.

|
slot |
If the text is not a double with at most 2 decimal numbers, it is colored red
Definition at line 58 of file TYInputDialog.cpp.

| void TYInputDialog::connect | ( | ) |
Connect the signal 'accepted' to the slot 'adjustDecimal'
Definition at line 45 of file TYInputDialog.cpp.


|
override |
Overload of the QInputDialog method Call adjustTextColor if the event is keyRelease
Definition at line 36 of file TYInputDialog.cpp.
