QElectroTech  0.8-dev
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
QFileNameEdit Class Reference

#include <qfilenameedit.h>

Inherits QLineEdit.

Collaboration diagram for QFileNameEdit:
Collaboration graph

Public Member Functions

 QFileNameEdit (QWidget *=nullptr)
 
 QFileNameEdit (const QString &, QWidget *=nullptr)
 
 ~QFileNameEdit () override
 
bool isEmpty ()
 
bool isValid ()
 

Private Slots

void validationFailed ()
 

Private Member Functions

 QFileNameEdit (const QFileNameEdit &)
 
void init ()
 
void displayToolTip ()
 

Private Attributes

QRegExp regexp_
 
QETRegExpValidatorvalidator_
 
QString tooltip_text_
 

Detailed Description

This class represents a textfield dedicated to input a portable filename (not a path). It enables users to input a name matching the regular expression ^[0-9a-z_-.]+$, thus avoiding problems with diacritics, non-printable, non-ASCII or uppercase characters, which should improve the portability of elements created by users.

Constructor & Destructor Documentation

◆ QFileNameEdit() [1/3]

QFileNameEdit::QFileNameEdit ( QWidget *  parent = nullptr)

Constructeur

Parameters
parentQWidget parent de ce champ de texte
Here is the call graph for this function:

◆ QFileNameEdit() [2/3]

QFileNameEdit::QFileNameEdit ( const QString &  contents,
QWidget *  parent = nullptr 
)

Constructeur

Parameters
contentsContenu initial du champ
parentQWidget parent de ce champ de texte
Here is the call graph for this function:

◆ ~QFileNameEdit()

QFileNameEdit::~QFileNameEdit ( )
override

Destructeur

◆ QFileNameEdit() [3/3]

QFileNameEdit::QFileNameEdit ( const QFileNameEdit )
private

Member Function Documentation

◆ displayToolTip()

void QFileNameEdit::displayToolTip ( )
private

Affiche l'info-bulle informant l'utilisateur des caracteres autorises.

Here is the caller graph for this function:

◆ init()

void QFileNameEdit::init ( )
private

Construit l'objet

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

◆ isEmpty()

bool QFileNameEdit::isEmpty ( )
Returns
true si le champ de texte est vide, false sinon
Here is the caller graph for this function:

◆ isValid()

bool QFileNameEdit::isValid ( )
Returns
true si le champ de texte n'est pas vide et est valide

◆ validationFailed

void QFileNameEdit::validationFailed ( )
privateslot

Gere le fait que la validation du champ de texte ait echoue.

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

Member Data Documentation

◆ regexp_

QRegExp QFileNameEdit::regexp_
private

◆ tooltip_text_

QString QFileNameEdit::tooltip_text_
private

◆ validator_

QETRegExpValidator* QFileNameEdit::validator_
private

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