Changeset 93791 in vbox for trunk/src/VBox
- Timestamp:
- Feb 16, 2022 12:49:09 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIHostnameDomainNameEditor.cpp
r93115 r93791 157 157 addLineEdit(iRow, m_pDomainNameLabel, m_pDomainNameLineEdit, m_pMainLayout); 158 158 159 / / QRegularExpression hostNameRegex("^[a-zA-Z0-9-.]{2,}\\.[a-zA-Z0-9-.]+$");^[a-zA-Z0-9-.]{2,}\.[a-zA-Z0-9-.]+$160 /* Host name and domain should be strings of minimum length of 2 and composed of alpha numerics, '-', and '.': */161 m_pHostnameLineEdit->setValidator(new QRegularExpressionValidator(QRegularExpression("^[a-zA-Z0-9-.]{2,} "), this));162 m_pDomainNameLineEdit->setValidator(new QRegularExpressionValidator(QRegularExpression("^[a-zA-Z0-9-.]{2,} "), this));159 /* Host name and domain should be strings of minimum length of 2 and composed of alpha numerics, '-', and '.' 160 * Exclude strings with . at the end: */ 161 m_pHostnameLineEdit->setValidator(new QRegularExpressionValidator(QRegularExpression("^[a-zA-Z0-9-.]{2,}[^$.]"), this)); 162 m_pDomainNameLineEdit->setValidator(new QRegularExpressionValidator(QRegularExpression("^[a-zA-Z0-9-.]{2,}[^$.]"), this)); 163 163 164 164 connect(m_pHostnameLineEdit, &QILineEdit::textChanged,
Note:
See TracChangeset
for help on using the changeset viewer.