예제 #1
0
파일: log.cpp 프로젝트: roiso/unisys
void Log::inicial(){
    QDateTime fecha;
    QDate date;
    date.setDate(1900,01,01);
    QTime time;
    time.setHMS(01,01,01);
    fecha.setDate(date);
    fecha.setTime(time);

    criterio.setContinente(" ");
    criterio.setOrigen(" ");
    criterio.setDestino(" ");
    criterio.setOficina(" ");
    criterio.setOwner(" ");
    criterio.setPais(" ");
    criterio.setPeticion(fecha);

    QDate local;
    local.setDate(local.currentDate().year(), local.currentDate().month(), local.currentDate().day());
    ui->dateFechaFilter->setDate(local);

    showPeticiones();
    showOwner();
    showOficina();
    showContinente();
    showPais();
    showEstados();

    ui->labels->setEnabled(false);
}
void EditAccountDialog::loadEnv()
{
	QRegExp regexp("[1-9][0-9][0-9][0-9]{1,4}");
	numberLineEdit->setValidator(new QRegExpValidator(regexp, this));

        qList << "get_account_properties" << "update_account" << "change_account_owner";

        tcs = new ThreadControl( this );
        connect( tcs, SIGNAL( canGetData() ), this, SLOT( chooseQuery() ) );
        connect( tcs, SIGNAL( errorRaised( const QString & ) ), this, SLOT( loadError( const QString & ) ) );
        connect( tcs, SIGNAL( stateChanged( bool ) ), this, SLOT( stateChanged( bool ) ) );

	connect( okButton, SIGNAL( clicked() ), this, SLOT( okButtonClicked() ) );
        connect( ownerButton, SIGNAL( clicked() ), this, SLOT( showOwner() ) );
}