Commit f2f60d78 authored by Johannes Lenzen's avatar Johannes Lenzen
Browse files

fixed missing function on older qt5 versions

parent d739c6e5
......@@ -44,6 +44,7 @@
#include "ScriptingPlugin.hh"
#include "OpenFlipper/common/GlobalOptions.hh"
#include <QRegExp>
......@@ -354,7 +355,7 @@ void ScriptingPlugin::slotExecuteScript( QString _script ) {
if (_script.contains(QRegExp("^include <")) ) {
// Split input script into lines
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
#if QT_VERSION_MAJOR < 6
QStringList script = _script.split(QRegExp("[\r\n]"),QString::SkipEmptyParts);
#else
QStringList script = QRegExp("[\r\n]").splitString(_script, Qt::SkipEmptyParts);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment