Fix QString::split() compiler error for older versions of Qt.

This commit is contained in:
Ernie Pasveer
2022-10-02 12:33:37 -05:00
parent e64e0043e2
commit 2a556e698c
3 changed files with 20 additions and 0 deletions
+4
View File
@@ -154,7 +154,11 @@ void SeerMemoryVisualizerWidget::handleText (const QString& text) {
if (id_text.toInt() == _variableId) {
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
QStringList words = Seer::filterEscapes(Seer::parseFirst(text, "value=", '"', '"', false)).split(' ', Qt::SkipEmptyParts);
#else
QStringList words = Seer::filterEscapes(Seer::parseFirst(text, "value=", '"', '"', false)).split(' ', QString::SkipEmptyParts);
#endif
setVariableAddress(words.first());
}