11#include <QCoreApplication>
176 QList<QQmlError> errors = d->
errors;
190 while (objectWithEngine) {
194 objectWithEngine = objectWithEngine->parent();
197 if (!objectWithEngine || objectWithEngine ==
object) {
205 if (ddata && ddata->outerContext) {
206 error.setUrl(ddata->outerContext->url());
207 error.setLine(qmlConvertSourceCoordinate<quint16, int>(ddata->lineNumber));
208 error.setColumn(qmlConvertSourceCoordinate<quint16, int>(ddata->columnNumber));
214 errors.prepend(
error);
223#define MESSAGE_FUNCS(FuncName, MessageLevel) \
224 QQmlInfo FuncName(const QObject *me) \
226 QQmlInfoPrivate *d = new QQmlInfoPrivate(MessageLevel); \
228 return QQmlInfo(d); \
230 QQmlInfo FuncName(const QObject *me, const QQmlError &error) \
232 QQmlInfoPrivate *d = new QQmlInfoPrivate(MessageLevel); \
234 d->errors << error; \
235 return QQmlInfo(d); \
237 QQmlInfo FuncName(const QObject *me, const QList<QQmlError> &errors) \
239 QQmlInfoPrivate *d = new QQmlInfoPrivate(MessageLevel); \
241 d->errors = errors; \
242 return QQmlInfo(d); \
static QQmlData * get(QObjectPrivate *priv, bool create)
void warning(const QQmlError &)
The QQmlEngine class provides an environment for instantiating QML components.
The QQmlError class encapsulates a QML error.
QList< QQmlError > errors
QQmlInfoPrivate(QtMsgType type)
QQmlInfo(const QQmlInfo &)
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool isEmpty() const noexcept
Returns true if the string has no characters; otherwise returns false.
QString & prepend(QChar c)
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
QQmlEngine * qmlEngine(const QObject *obj)
#define MESSAGE_FUNCS(FuncName, MessageLevel)
Q_QML_EXPORT QQmlInfo qmlDebug(const QObject *me)
Q_QML_EXPORT QQmlInfo qmlInfo(const QObject *me)
Q_QML_EXPORT QQmlInfo qmlWarning(const QObject *me)
QLatin1StringView QLatin1String