Commit 1a2c617b authored by Jan Möbius's avatar Jan Möbius

Fixed deprecation warning

parent c0554124
......@@ -177,7 +177,11 @@ QScriptValue VsiPlugin::askForInputs(QString _element, QString _inputs)
QVector<VSI::Input *> inputs;
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
foreach (QString s, _inputs.split (",", QString::SkipEmptyParts))
#else
foreach (QString s, _inputs.split (",", Qt::SkipEmptyParts))
#endif
foreach (VSI::Input *i, e->inputs ())
{
if (i->name () == s)
......@@ -198,8 +202,13 @@ QScriptValue VsiPlugin::askForInputs(QString _element, QString _inputs)
QString script = "inputs = { ";
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
foreach (QString s, _inputs.split (",", QString::SkipEmptyParts))
script += s + ": " + results[s] + ",";
script += s + ": " + results[s] + ",";
#else
foreach (QString s, _inputs.split (",", Qt::SkipEmptyParts))
script += s + ": " + results[s] + ",";
#endif
script.remove (script.length () - 1, 1);
......
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