Commit 71d46a48 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.
parent 9bd2960e
Pipeline #206039 failed with stage
in 4 minutes and 49 seconds
......@@ -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