summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/rbutilqt.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-07-25 20:28:05 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-08-16 12:14:02 +0200
commit7c9a7ed406e1e7e079759b0048280a05e453eb10 (patch)
tree8b343e88c440cd03bab8cf51077a0cb4f4e2e742 /rbutil/rbutilqt/rbutilqt.cpp
parent9cd37337dec6c970a1fd148e92ffc43fbf409cc3 (diff)
downloadrockbox-7c9a7ed406.tar.gz
rockbox-7c9a7ed406.tar.bz2
rockbox-7c9a7ed406.zip
rbutil: Initial Qt6 support.
Qt6 replaces QTextStream::setCodec() with QTextStream::setEncoding(). Change-Id: I4cfa90d89f54ad49d061ad859585a2a74b5f9786
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.cpp')
-rw-r--r--rbutil/rbutilqt/rbutilqt.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp
index 5a39e8ab9a..60f517825d 100644
--- a/rbutil/rbutilqt/rbutilqt.cpp
+++ b/rbutil/rbutilqt/rbutilqt.cpp
@@ -292,7 +292,11 @@ void RbUtilQt::about()
QFile credits(":/docs/CREDITS");
credits.open(QIODevice::ReadOnly);
QTextStream r(&credits);
+#if QT_VERSION < 0x060000
r.setCodec(QTextCodec::codecForName("UTF-8"));
+#else
+ r.setEncoding(QStringConverter::Utf8);
+#endif
while(!r.atEnd()) {
QString line = r.readLine();
// filter out header.