Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Slots | Public Member Functions | List of all members
TYInputDialog Class Reference

#include <TYInputDialog.h>

Inheritance diagram for TYInputDialog:
Inheritance graph
[legend]
Collaboration diagram for TYInputDialog:
Collaboration graph
[legend]

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
 

Detailed Description

Definition at line 29 of file TYInputDialog.h.

Constructor & Destructor Documentation

◆ TYInputDialog()

TYInputDialog::TYInputDialog ( bool  isZeroOK = true,
QWidget *  parent = nullptr,
Qt::WindowFlags  flags = Qt::WindowFlags() 
)

Constructor

Definition at line 29 of file TYInputDialog.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ adjustDecimal

void TYInputDialog::adjustDecimal ( )
slot

If the text include a coma, it is changed into a point

Definition at line 50 of file TYInputDialog.cpp.

Here is the caller graph for this function:

◆ adjustTextColor

void TYInputDialog::adjustTextColor ( )
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.

Here is the caller graph for this function:

◆ connect()

void TYInputDialog::connect ( )

Connect the signal 'accepted' to the slot 'adjustDecimal'

Definition at line 45 of file TYInputDialog.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventFilter()

bool TYInputDialog::eventFilter ( QObject *  object,
QEvent *  event 
)
override

Overload of the QInputDialog method Call adjustTextColor if the event is keyRelease

Definition at line 36 of file TYInputDialog.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: