QElectroTech
0.8-dev
|
#include <qfilenameedit.h>
Inherits QLineEdit.
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_ |
QETRegExpValidator * | validator_ |
QString | tooltip_text_ |
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.
QFileNameEdit::QFileNameEdit | ( | QWidget * | parent = nullptr | ) |
Constructeur
parent | QWidget parent de ce champ de texte |
QFileNameEdit::QFileNameEdit | ( | const QString & | contents, |
QWidget * | parent = nullptr |
||
) |
Constructeur
contents | Contenu initial du champ |
parent | QWidget parent de ce champ de texte |
|
override |
Destructeur
|
private |
|
private |
Affiche l'info-bulle informant l'utilisateur des caracteres autorises.
|
private |
Construit l'objet
bool QFileNameEdit::isEmpty | ( | ) |
bool QFileNameEdit::isValid | ( | ) |
|
privateslot |
Gere le fait que la validation du champ de texte ait echoue.
|
private |
|
private |
|
private |