Exemplo n.º 1
0
void YahooConfig::changed()
{
    emit okEnabled(!edtLogin->text().isEmpty() &&
                   !edtPassword->text().isEmpty() &&
                   !edtServer->text().isEmpty() &&
                   atol(edtPort->text()));
}
Exemplo n.º 2
0
void JabberConfig::changed()
{
    bool bOK =  !edtID->text().isEmpty() &&
                !edtPasswd->text().isEmpty() &&
                !edtServer->text().isEmpty() &&
                atol(edtPort->text());
    emit okEnabled(bOK);
}
Exemplo n.º 3
0
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);
}
Exemplo n.º 4
0
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()));

}
Exemplo n.º 5
0
void SMSSetup::init()
{
    emit okEnabled(true);
}