示例#1
0
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();
}
示例#2
0
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();
}
示例#3
0
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();
}
示例#4
0
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();
    }
}
示例#5
0
void sqlLogForm::closeEvent( QCloseEvent * )
{
        emit goingAway();
}
示例#6
0
void EditDialog::closeEvent(QCloseEvent*)
{
    emit goingAway();
}
示例#7
0
void EditDialog::accept()
{
    if(hexEdit->data() != oldData)
        emit updateRecordText(curRow, curCol, hexEdit->data());
    emit goingAway();
}