Commit 5e2b46a5 authored by Heiko Becker's avatar Heiko Becker
Browse files

katesql: Port from Qt:SystemLocaleDate to QLocale

Qt::SystemLocaleDate (and Qt::SystemLocaleShortDate which is the
replacement) is deprecated, which broke the build with the current
deprecation level.

(cherry picked from commit 71d46a48)
parent bd727bc3
......@@ -13,6 +13,7 @@
#include <QDateTime>
#include <QFontDatabase>
#include <QLayout>
#include <QLocale>
#include <QStyle>
#include <QTextEdit>
......@@ -89,7 +90,7 @@ void TextOutputWidget::showSuccessMessage(const QString &message)
void TextOutputWidget::writeMessage(const QString &msg)
m_output->append(QStringLiteral("%1: %2\n").arg(QDateTime::currentDateTime().toString(Qt::SystemLocaleDate), msg));
m_output->append(QStringLiteral("%1: %2\n").arg(QLocale::system().toString(QDateTime::currentDateTime(), QLocale::ShortFormat), msg));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment