www.pudn.com > gjs.rar > gotocelldialog.ui.h
#includevoid GoToCellDialog::init() { QRegExp regExp("[A-Za-z][1-9][0-9]{0,2}"); lineEdit->setValidator(new QRegExpValidator(regExp, this)); } void GoToCellDialog::enableOkButton() { okButton->setEnabled(lineEdit->hasAcceptableInput()); }