Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

rbutil: Initial Qt6 support.

Qt6 replaces QTextStream::setCodec() with QTextStream::setEncoding().

Change-Id: I4cfa90d89f54ad49d061ad859585a2a74b5f9786

+16
+4
rbutil/rbutilqt/base/ttssapi.cpp
··· 143 143 } 144 144 145 145 voicestream = new QTextStream(voicescript); 146 + #if QT_VERSION < 0x060000 146 147 voicestream->setCodec("UTF16-LE"); 148 + #else 149 + voicestream->setEncoding(QStringConverter::Utf16LE); 150 + #endif 147 151 148 152 m_started = true; 149 153 return true;
+4
rbutil/rbutilqt/base/voicefile.cpp
··· 217 217 //read in downloaded file 218 218 emit logItem(tr("Reading strings..."),LOGINFO); 219 219 QTextStream in(&genlang); 220 + #if QT_VERSION < 0x060000 220 221 in.setCodec("UTF-8"); 222 + #else 223 + in.setEncoding(QStringConverter::Utf8); 224 + #endif 221 225 QString id, voice; 222 226 bool idfound = false; 223 227 bool voicefound=false;
+4
rbutil/rbutilqt/gui/changelog.cpp
··· 45 45 QFile changelog(filename); 46 46 changelog.open(QIODevice::ReadOnly); 47 47 QTextStream c(&changelog); 48 + #if QT_VERSION < 0x060000 48 49 c.setCodec(QTextCodec::codecForName("UTF-8")); 50 + #else 51 + c.setEncoding(QStringConverter::Utf8); 52 + #endif 49 53 QString text; 50 54 while(!c.atEnd()) { 51 55 QString line = c.readLine();
+4
rbutil/rbutilqt/rbutilqt.cpp
··· 292 292 QFile credits(":/docs/CREDITS"); 293 293 credits.open(QIODevice::ReadOnly); 294 294 QTextStream r(&credits); 295 + #if QT_VERSION < 0x060000 295 296 r.setCodec(QTextCodec::codecForName("UTF-8")); 297 + #else 298 + r.setEncoding(QStringConverter::Utf8); 299 + #endif 296 300 while(!r.atEnd()) { 297 301 QString line = r.readLine(); 298 302 // filter out header.