mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 21:25:19 -05:00
rbutil: Initial Qt6 support.
Qt6 replaces QTextStream::setCodec() with QTextStream::setEncoding(). Change-Id: I4cfa90d89f54ad49d061ad859585a2a74b5f9786
This commit is contained in:
parent
9cd37337de
commit
7c9a7ed406
4 changed files with 16 additions and 0 deletions
|
|
@ -45,7 +45,11 @@ QString Changelog::parseChangelogFile(QString filename)
|
|||
QFile changelog(filename);
|
||||
changelog.open(QIODevice::ReadOnly);
|
||||
QTextStream c(&changelog);
|
||||
#if QT_VERSION < 0x060000
|
||||
c.setCodec(QTextCodec::codecForName("UTF-8"));
|
||||
#else
|
||||
c.setEncoding(QStringConverter::Utf8);
|
||||
#endif
|
||||
QString text;
|
||||
while(!c.atEnd()) {
|
||||
QString line = c.readLine();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue