diff --git a/libs/qhexedit/src/qhexedit_p.cpp b/libs/qhexedit/src/qhexedit_p.cpp index d70e50ec..1401cf3b 100644 --- a/libs/qhexedit/src/qhexedit_p.cpp +++ b/libs/qhexedit/src/qhexedit_p.cpp @@ -437,7 +437,7 @@ void QHexEditPrivate::keyPressEvent(QKeyEvent *event) if (!_readOnly) { /* Hex input */ - int key = int(event->text()[0].toAscii()); + int key = int(event->text()[0].toLatin1()); if ((key>='0' && key<='9') || (key>='a' && key <= 'f')) { if (getSelectionBegin() != getSelectionEnd()) diff --git a/src/EditDialog.cpp b/src/EditDialog.cpp index 2c22d482..ae1703dd 100644 --- a/src/EditDialog.cpp +++ b/src/EditDialog.cpp @@ -141,7 +141,7 @@ void EditDialog::checkDataType() { // Check if data is text only ui->comboEditor->setVisible(true); - if(QString(hexEdit->data()).toAscii() == hexEdit->data()) // Any proper way?? + if(QString(hexEdit->data()).toLatin1() == hexEdit->data()) // Any proper way?? { ui->editorStack->setCurrentIndex(0); diff --git a/src/ImportCsvDialog.cpp b/src/ImportCsvDialog.cpp index 9d239516..afc5a1d1 100644 --- a/src/ImportCsvDialog.cpp +++ b/src/ImportCsvDialog.cpp @@ -207,12 +207,12 @@ void ImportCsvDialog::checkInput() char ImportCsvDialog::currentQuoteChar() { if(ui->comboQuote->currentText().length()) - return ui->comboQuote->currentText().at(0).toAscii(); + return ui->comboQuote->currentText().at(0).toLatin1(); else return 0; } char ImportCsvDialog::currentSeparatorChar() { - return ui->comboSeparator->currentText() == tr("Tab") ? '\t' : ui->comboSeparator->currentText().at(0).toAscii(); + return ui->comboSeparator->currentText() == tr("Tab") ? '\t' : ui->comboSeparator->currentText().at(0).toLatin1(); }