Fix build for Qt < 5.10

This commit is contained in:
Martin Kleusberg
2019-05-11 16:28:48 +02:00
parent e2f3186d19
commit 6bbf401abd

View File

@@ -729,7 +729,7 @@ QChar ImportCsvDialog::currentQuoteChar() const
else if(ui->comboQuote->currentText().length())
value = ui->comboQuote->currentText();
return value.size() ? value.front() : QChar();
return value.size() ? value.at(0) : QChar();
}
void ImportCsvDialog::setSeparatorChar(QChar c)
@@ -758,7 +758,7 @@ QChar ImportCsvDialog::currentSeparatorChar() const
else
value = ui->comboSeparator->currentText() == tr("Tab") ? "\t" : ui->comboSeparator->currentText();
return value.size() ? value.front() : QChar();
return value.size() ? value.at(0) : QChar();
}
void ImportCsvDialog::setEncoding(const QString& sEnc)