diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-11-19 10:01:25 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-11-19 09:15:08 +0000 |
commit | 31afb6b70513cc673d17fc72f081f19ac80e7111 (patch) | |
tree | 6c6e219008b10970a63a93aa18f08baa6f3c6d60 /src/qml/qml/qqmlinfo.h | |
parent | cb3cfdf661483ada83a2189b220ad893d5acf223 (diff) |
Remove compatibility shim from qmlinfo.{cpp|h}
We don't need to handle symbol clashes with QtQuick1 anymore.
[ChangeLog][QtQml] The functions qmlDebug, qmlInfo, and qmlWarning are
no longer available in the QtQml namespace. Use their counterparts in
the global namespace.
Fixes: QTBUG-88637
Change-Id: Ia74510bd711790cebf55de4cd668891712f6835e
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlinfo.h')
-rw-r--r-- | src/qml/qml/qqmlinfo.h | 44 |
1 files changed, 18 insertions, 26 deletions
diff --git a/src/qml/qml/qqmlinfo.h b/src/qml/qml/qqmlinfo.h index a3ceb405b8..fe865658d4 100644 --- a/src/qml/qml/qqmlinfo.h +++ b/src/qml/qml/qqmlinfo.h @@ -49,25 +49,17 @@ QT_BEGIN_NAMESPACE class QQmlInfo; -// declared in namespace to avoid symbol conflicts with QtDeclarative -namespace QtQml { - Q_QML_EXPORT QQmlInfo qmlDebug(const QObject *me); - Q_QML_EXPORT QQmlInfo qmlDebug(const QObject *me, const QQmlError &error); - Q_QML_EXPORT QQmlInfo qmlDebug(const QObject *me, const QList<QQmlError> &errors); +Q_QML_EXPORT QQmlInfo qmlDebug(const QObject *me); +Q_QML_EXPORT QQmlInfo qmlDebug(const QObject *me, const QQmlError &error); +Q_QML_EXPORT QQmlInfo qmlDebug(const QObject *me, const QList<QQmlError> &errors); - Q_QML_EXPORT QQmlInfo qmlInfo(const QObject *me); - Q_QML_EXPORT QQmlInfo qmlInfo(const QObject *me, const QQmlError &error); - Q_QML_EXPORT QQmlInfo qmlInfo(const QObject *me, const QList<QQmlError> &errors); +Q_QML_EXPORT QQmlInfo qmlInfo(const QObject *me); +Q_QML_EXPORT QQmlInfo qmlInfo(const QObject *me, const QQmlError &error); +Q_QML_EXPORT QQmlInfo qmlInfo(const QObject *me, const QList<QQmlError> &errors); - Q_QML_EXPORT QQmlInfo qmlWarning(const QObject *me); - Q_QML_EXPORT QQmlInfo qmlWarning(const QObject *me, const QQmlError &error); - Q_QML_EXPORT QQmlInfo qmlWarning(const QObject *me, const QList<QQmlError> &errors); -} -QT_WARNING_PUSH -QT_WARNING_DISABLE_CLANG("-Wheader-hygiene") -// This is necessary to allow for QtQuick1 and QtQuick2 scenes in a single application. -using namespace QtQml; -QT_WARNING_POP +Q_QML_EXPORT QQmlInfo qmlWarning(const QObject *me); +Q_QML_EXPORT QQmlInfo qmlWarning(const QObject *me, const QQmlError &error); +Q_QML_EXPORT QQmlInfo qmlWarning(const QObject *me, const QList<QQmlError> &errors); class QQmlInfoPrivate; class Q_QML_EXPORT QQmlInfo : public QDebug @@ -102,15 +94,15 @@ public: #endif private: - friend Q_QML_EXPORT QQmlInfo QtQml::qmlDebug(const QObject *me); - friend Q_QML_EXPORT QQmlInfo QtQml::qmlDebug(const QObject *me, const QQmlError &error); - friend Q_QML_EXPORT QQmlInfo QtQml::qmlDebug(const QObject *me, const QList<QQmlError> &errors); - friend Q_QML_EXPORT QQmlInfo QtQml::qmlInfo(const QObject *me); - friend Q_QML_EXPORT QQmlInfo QtQml::qmlInfo(const QObject *me, const QQmlError &error); - friend Q_QML_EXPORT QQmlInfo QtQml::qmlInfo(const QObject *me, const QList<QQmlError> &errors); - friend Q_QML_EXPORT QQmlInfo QtQml::qmlWarning(const QObject *me); - friend Q_QML_EXPORT QQmlInfo QtQml::qmlWarning(const QObject *me, const QQmlError &error); - friend Q_QML_EXPORT QQmlInfo QtQml::qmlWarning(const QObject *me, const QList<QQmlError> &errors); + friend Q_QML_EXPORT QQmlInfo qmlDebug(const QObject *me); + friend Q_QML_EXPORT QQmlInfo qmlDebug(const QObject *me, const QQmlError &error); + friend Q_QML_EXPORT QQmlInfo qmlDebug(const QObject *me, const QList<QQmlError> &errors); + friend Q_QML_EXPORT QQmlInfo qmlInfo(const QObject *me); + friend Q_QML_EXPORT QQmlInfo qmlInfo(const QObject *me, const QQmlError &error); + friend Q_QML_EXPORT QQmlInfo qmlInfo(const QObject *me, const QList<QQmlError> &errors); + friend Q_QML_EXPORT QQmlInfo qmlWarning(const QObject *me); + friend Q_QML_EXPORT QQmlInfo qmlWarning(const QObject *me, const QQmlError &error); + friend Q_QML_EXPORT QQmlInfo qmlWarning(const QObject *me, const QList<QQmlError> &errors); QQmlInfo(QQmlInfoPrivate *); QQmlInfoPrivate *d; |