void YahooConfig::changed() { emit okEnabled(!edtLogin->text().isEmpty() && !edtPassword->text().isEmpty() && !edtServer->text().isEmpty() && atol(edtPort->text())); }
void JabberConfig::changed() { bool bOK = !edtID->text().isEmpty() && !edtPasswd->text().isEmpty() && !edtServer->text().isEmpty() && atol(edtPort->text()); emit okEnabled(bOK); }
void JabberConfig::changed() { bool bOK = !edtID->text().isEmpty() && !edtPasswd->text().isEmpty(); if (bOK){ if (m_bConfig){ bOK = !edtServer->text().isEmpty() && atol(edtPort->text()); }else{ bOK = !edtServer1->text().isEmpty() && atol(edtPort1->text()); } } emit okEnabled(bOK); }
Dialog_Schedule::Dialog_Schedule(QWidget *parent ,MainWindow* a) : QDialog(parent),ui(new Ui::Dialog_Schedule) { parent = a; ui->setupUi(this); QRegExp reg(".{1,50}"); ui->okbutton->setEnabled(false); ui->lineEdit->setValidator(new QRegExpValidator(reg,this)); connect(ui->lineEdit,SIGNAL(textChanged(QString)),this,SLOT(okEnabled())); connect(ui->okbutton,SIGNAL(clicked()),this,SLOT(createSchedule())); }
void SMSSetup::init() { emit okEnabled(true); }