summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/rbutilqt.cpp
diff options
context:
space:
mode:
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.