Replace QString::toHtmlEscaped() with Qt::escape(), for Qt4 compatibility

This commit is contained in:
Justin Clift
2016-09-27 15:25:03 +01:00
parent b005c7eef6
commit 482502f4f4

View File

@@ -949,7 +949,7 @@ void MainWindow::executeQuery()
{
// The query takes the last placeholder as it may itself contain the sequence '%' + number
statusMessage = tr("%1 rows returned in %2ms from: %3").arg(
sqlWidget->getModel()->totalRowCount()).arg(timer.elapsed()).arg(queryPart.trimmed().toHtmlEscaped());
sqlWidget->getModel()->totalRowCount()).arg(timer.elapsed()).arg(Qt::escape(queryPart.trimmed()));
sqlWidget->enableSaveButton(true);
sql3status = SQLITE_OK;
}