rbutil: More Qt6 compatibility.

Qt6 doesn't contain QTextCodec anymore but instead provides it in the
optional core5compat module.

Change-Id: Ia45985a32df3826faf041981b8935c839946e5c9
This commit is contained in:
Dominik Riebeling 2020-10-29 21:07:42 +01:00
parent 4594541b5f
commit 96f82f828a
3 changed files with 5 additions and 1 deletions

View file

@ -27,7 +27,7 @@ quazip/(un)zip.h files for details, basically it's zlib license.
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QTextCodec>
#include <QTextCodec>
#include "zip.h"
#include "unzip.h"

View file

@ -161,6 +161,9 @@ QT += widgets
if (lessThan(QT_MAJOR_VERSION, 6)) {
QT += multimedia
}
if (greaterThan(QT_MAJOR_VERSION, 5)) {
QT += core5compat
}
CONFIG += c++11

View file

@ -18,6 +18,7 @@
#include <QDialog>
#include <QMessageBox>
#include <QTextCodec>
#include "ui_themesinstallfrm.h"
#include "themesinstallwindow.h"