Fixed deprecated method Qt::SystemLocaleLongDate (#2784)
Fixes deprecation notices introduced in #2748 Reference: https://doc.qt.io/qt-5/qt.html#DateFormat-enum Replacement: https://doc.qt.io/qt-5/qlocale.html#FormatType-enum
This commit is contained in:
@@ -607,10 +607,10 @@ void ChannelView::setChannel(ChannelPtr underlyingChannel)
|
||||
if (this->channel_->lastDate_ != QDate::currentDate())
|
||||
{
|
||||
this->channel_->lastDate_ = QDate::currentDate();
|
||||
auto msg =
|
||||
makeSystemMessage(QDate::currentDate().toString(
|
||||
Qt::SystemLocaleLongDate),
|
||||
QTime(0, 0));
|
||||
auto msg = makeSystemMessage(
|
||||
QLocale().toString(QDate::currentDate(),
|
||||
QLocale::LongFormat),
|
||||
QTime(0, 0));
|
||||
this->channel_->addMessage(msg);
|
||||
}
|
||||
// When the message was received in the underlyingChannel,
|
||||
|
||||
Reference in New Issue
Block a user