11#include <QCoreApplication>
190 while (objectWithEngine) {
194 objectWithEngine = objectWithEngine->
parent();
197 if (!objectWithEngine || objectWithEngine ==
object) {
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); \
void prepend(rvalue_ref t)
QObject * parent() const
Returns a pointer to the parent object.
static QQmlData * get(QObjectPrivate *priv, bool create)
QQmlContextData * outerContext
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
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)
int qmlConvertSourceCoordinate< quint16, int >(quint16 n)
QLatin1StringView QLatin1String