summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/ttsfestival.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/base/ttsfestival.cpp')
-rw-r--r--rbutil/rbutilqt/base/ttsfestival.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/base/ttsfestival.cpp b/rbutil/rbutilqt/base/ttsfestival.cpp
index 41358ba488..6ed08ddacc 100644
--- a/rbutil/rbutilqt/base/ttsfestival.cpp
+++ b/rbutil/rbutilqt/base/ttsfestival.cpp
@@ -295,7 +295,11 @@ QString TTSFestival::getVoiceInfo(QString voice)
Qt::CaseInsensitive, QRegExp::Wildcard));
LOG_INFO() << "voiceInfo w/o descr:" << response;
response = response.remove(')');
+#if QT_VERSION >= 0x050e00
+ QStringList responseLines = response.split('(', Qt::SkipEmptyParts);
+#else
QStringList responseLines = response.split('(', QString::SkipEmptyParts);
+#endif
responseLines.removeAt(0); // the voice name itself
QString description;