Logo Search packages:      
Sourcecode: facturalux version File versions  Download package

void FLFormRecordDB::closeEvent ( QCloseEvent *  e  )  [protected, virtual]

Captura del evento cerrar la ventana

Reimplemented from FLFormDB.

Definition at line 911 of file FLFormRecordDB.cpp.

References accepted, afterCommit(), afterRollback(), beforeCommit(), beforeRollback(), FLFormDB::closed(), FLSqlCursor::commit(), FLFormDB::cursor_, and FLSqlCursor::rollback().

{
  if (accepted)
      {
        emit beforeCommit ();
        if (cursor_->commit ())
            emit afterCommit (true);
        else
         emit afterCommit (false);
      }
  else
      {
        emit beforeRollback ();
        if (!cursor_->rollback ())
            {
              emit afterRollback (false);
              return;
            }
        else
            emit afterRollback (true);

      }
  emit closed ();
  QWidget::closeEvent (e);
}


Generated by  Doxygen 1.6.0   Back to index