Changeset 93823 in vbox
- Timestamp:
- Feb 17, 2022 11:00:08 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIHostnameDomainNameEditor.cpp
r93791 r93823 63 63 if (m_pHostnameLineEdit) 64 64 m_pHostnameLineEdit->mark(!m_pHostnameLineEdit->hasAcceptableInput(), 65 tr("Hostname should be at least 2 character lo mg. Allowed characters are alphanumerics, \"-\" and \".\""));65 tr("Hostname should be at least 2 character long. Allowed characters are alphanumerics, \"-\" and \".\"")); 66 66 if (m_pDomainNameLineEdit) 67 67 m_pDomainNameLineEdit->mark(!m_pDomainNameLineEdit->hasAcceptableInput(), 68 tr("Domain name should be at least 2 character lo mg. Allowed characters are alphanumerics, \"-\" and \".\""));68 tr("Domain name should be at least 2 character long. Allowed characters are alphanumerics, \"-\" and \".\"")); 69 69 } 70 70 … … 159 159 /* Host name and domain should be strings of minimum length of 2 and composed of alpha numerics, '-', and '.' 160 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));161 m_pHostnameLineEdit->setValidator(new QRegularExpressionValidator(QRegularExpression("^[a-zA-Z0-9-.]{2,}[$a-zA-Z0-9-]"), this)); 162 m_pDomainNameLineEdit->setValidator(new QRegularExpressionValidator(QRegularExpression("^[a-zA-Z0-9-.]{2,}[$a-zA-Z0-9-]"), this)); 163 163 164 164 connect(m_pHostnameLineEdit, &QILineEdit::textChanged,
Note:
See TracChangeset
for help on using the changeset viewer.