Skip to content

Commit 75b3a19

Browse files
committed
Fixed Qt 6 build
1 parent 00ed359 commit 75b3a19

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Editor/main_window/tip_of_day/tip_of_day.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ TipOfDay::TipOfDay(QString language, QWidget* parent) :
4242
ftips.setFileName(":/tips/tips_en.html");
4343

4444
QTextStream ts(&ftips);
45+
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
4546
ts.setCodec("UTF-8");
47+
#else
48+
ts.setEncoding(QStringConverter::Utf8);
49+
#endif
4650
ftips.open(QIODevice::ReadOnly | QIODevice::Text);
4751
QString allTipsRaw = ts.readAll();
4852
ftips.close();

0 commit comments

Comments
 (0)