diff --git a/lib/src/Scene/Qt/QtItemTools.cpp b/lib/src/Scene/Qt/QtItemTools.cpp index d42dbe1..f398b1c 100644 --- a/lib/src/Scene/Qt/QtItemTools.cpp +++ b/lib/src/Scene/Qt/QtItemTools.cpp @@ -95,25 +95,25 @@ QGenericReturnArgument GetReturnArgForQMetaType(int type, QMLReturnVariant& retV return QGenericReturnArgument(); case QMetaType::Type::Bool: retVar = bool(); - return Q_RETURN_ARG(bool, std::get(retVar)); + return QReturnArgument("bool", std::get(retVar)); case QMetaType::Type::Int: retVar = int(); - return Q_RETURN_ARG(int, std::get(retVar)); + return QReturnArgument("int", std::get(retVar)); case QMetaType::Type::Float: retVar = float(); - return Q_RETURN_ARG(float, std::get(retVar)); + return QReturnArgument("float", std::get(retVar)); case QMetaType::Type::Double: retVar = double(); - return Q_RETURN_ARG(double, std::get(retVar)); + return QReturnArgument("double", std::get(retVar)); case QMetaType::Type::QString: retVar = QString(); - return Q_RETURN_ARG(QString, std::get(retVar)); + return QReturnArgument("QString", std::get(retVar)); case QMetaType::Type::QDateTime: retVar = QDateTime(); - return Q_RETURN_ARG(QDateTime, std::get(retVar)); + return QReturnArgument("QDateTime", std::get(retVar)); default: retVar = QVariant(); - return Q_RETURN_ARG(QVariant, std::get(retVar)); + return QReturnArgument("QVariant", std::get(retVar)); } } @@ -288,7 +288,7 @@ std::vector ConvertAndCreateQArgumentsForMethod( varargs[i].convert(targetType); qtArgs.push_back(QGenericArgument(varargs[i].typeName(), varargs[i].data())); } else { - qtArgs.push_back(Q_ARG(QVariant, varargs[i])); + qtArgs.push_back(QArgument("QVariant", varargs[i])); } } else qtArgs.push_back(QGenericArgument());