Commit 60829f61 authored by Jan Möbius's avatar Jan Möbius

Fixed deprecation warning

parent c2cb341a
......@@ -350,7 +350,13 @@ void ScriptingPlugin::slotExecuteScript( QString _script ) {
if (_script.contains(QRegExp("^include <")) ) {
// Split input script into lines
QStringList script = _script.split(QRegExp("[\r\n]"),QString::SkipEmptyParts);
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
QStringList script = _script.split(QRegExp("[\r\n]"),QString::SkipEmptyParts);
#else
QStringList script = _script.split(QRegExp("[\r\n]"),Qt::SkipEmptyParts);
#endif
// Find first include statement
int include_index = script.indexOf(QRegExp("^include.*"));
......
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