void EditDialog::reject() { // This is called when pressing the cancel button or hitting the escape key // Reset all fields and move the cursor back to the table view loadText(oldData, curRow, curCol); emit goingAway(); }
void EditDialog::accept() { // Don't update if the data hasn't changed // To differentiate NULL and empty byte arrays, we also compare the NULL flag if(hexEdit->data() != oldData || hexEdit->data().isNull() != oldData.isNull()) emit updateRecordText(curRow, curCol, hexEdit->data()); emit goingAway(); }
void EditDialog::accept() { // Don't update if the data hasn't changed // To differentiate NULL and empty byte arrays, we also compare the NULL flag if(hexEdit->data() != oldData || hexEdit->data().isNull() != oldData.isNull()) { const QString dataType = ui->comboEditor->currentText(); bool isBlob = dataType == tr("Binary") || !ui->comboEditor->isVisible(); emit updateRecordText(curRow, curCol, isBlob, hexEdit->data()); } emit goingAway(); }
void EditDialog::reject() { // This is called when pressing the cancel button or hitting the escape key // If we're in dock mode, reset all fields and move the cursor back to the table view. // If we're in window mode, call the default implementation to just close the window normally. if(useInDock) { loadText(oldData, curRow, curCol); emit goingAway(); } else { QDialog::reject(); } }
void sqlLogForm::closeEvent( QCloseEvent * ) { emit goingAway(); }
void EditDialog::closeEvent(QCloseEvent*) { emit goingAway(); }
void EditDialog::accept() { if(hexEdit->data() != oldData) emit updateRecordText(curRow, curCol, hexEdit->data()); emit goingAway(); }