1
0
Fork 0
forked from len0rd/rockbox

rbutil: QString::split() changed with Qt 5.14.

Avoid a deprecated warning, and make it compile with Qt6, which removes
the old version.

Change-Id: Iaad10660a0c8bda9d7aa52ee250489ed135bd8a8
This commit is contained in:
Dominik Riebeling 2020-07-27 22:31:26 +02:00
parent d5820ff779
commit cd352d9052
4 changed files with 30 additions and 2 deletions

View file

@ -204,7 +204,11 @@ QStringList TTSSapi::getVoiceList(QString language)
if(dataRaw.startsWith("Error")) {
LOG_INFO() << "Error:" << dataRaw;
}
result = dataRaw.split(";",QString::SkipEmptyParts);
#if QT_VERSION >= 0x050e00
result = dataRaw.split(";", Qt::SkipEmptyParts);
#else
result = dataRaw.split(";", QString::SkipEmptyParts);
#endif
if(result.size() > 0)
{
result.sort();