diff options
| author | Maximilian Goldstein <max.goldstein@qt.io> | 2021-03-01 10:13:54 +0100 |
|---|---|---|
| committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2021-03-12 22:34:16 +0000 |
| commit | a9c93e2716a097c637515aded49a3308e257204b (patch) | |
| tree | 26a202c5c510a6df5b2e6052ef210febe02df42c /tools/qmlscene/main.cpp | |
| parent | e228615c84a2d84019a1b4b861d0fe4973a88dc1 (diff) | |
qmlscene: Show deprecation warning
qmlscene will be removed in favor of qml in the future.
[ChangeLog][QML][Important Behavior Changes] qmlscene is deprecated, please use qml instead
Task-number: QTBUG-53557
Task-number: QTBUG-53219
Task-number: QTBUG-65862
Change-Id: Ia295cdf0749ce79f6523dabebd43f0168e81c1f0
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tools/qmlscene/main.cpp')
| -rw-r--r-- | tools/qmlscene/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/qmlscene/main.cpp b/tools/qmlscene/main.cpp index de00522d48..abf1268a91 100644 --- a/tools/qmlscene/main.cpp +++ b/tools/qmlscene/main.cpp @@ -34,6 +34,7 @@ #include <QtCore/qscopedpointer.h> #include <QtCore/qtextstream.h> #include <QtCore/qregularexpression.h> +#include <QtCore/qloggingcategory.h> #include <QtGui/QGuiApplication> @@ -58,6 +59,8 @@ #include <QtCore/QTranslator> #include <QtCore/QLibraryInfo> +Q_LOGGING_CATEGORY(lcQmlsceneDeprecated, "qt.tools.qmlscene.deprecated") + #ifdef QML_RUNTIME_TESTING class RenderStatistics { @@ -431,6 +434,8 @@ int main(int argc, char ** argv) QStringList customSelectors; QStringList pluginPaths; + qCWarning(lcQmlsceneDeprecated()) << "Warning: qmlscene is deprecated and will be removed in a future version of Qt. Please use qml instead."; + // Parse arguments for application attributes to be applied before Q[Gui]Application creation. for (int i = 1; i < argc; ++i) { const char *arg = argv[i]; |
