void DiamondcardProfileForm::init() { user_config = NULL; destroy_user_config = false; QRegExp rxNoSpace("\\S*"); accountIdLineEdit->setValidator(new QRegExpValidator(rxNoSpace, this)); pinCodeLineEdit->setValidator(new QRegExpValidator(rxNoSpace, this)); }
void WizardForm::init() { QRegExp rxNoSpace("\\S*"); // Set validators usernameLineEdit->setValidator(new QRegExpValidator(rxNoSpace, this)); domainLineEdit->setValidator(new QRegExpValidator(rxNoSpace, this)); authNameLineEdit->setValidator(new QRegExpValidator(rxNoSpace, this)); proxyLineEdit->setValidator(new QRegExpValidator(rxNoSpace, this)); initProviders(); serviceProviderComboBox->setCurrentIndex(serviceProviderComboBox->count() - 1); update(tr(PROV_OTHER)); }