summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Krems <m.krems@software-vision.eu>2020-08-29 16:23:06 +0200
committerMarcel Krems <m.krems@software-vision.eu>2020-08-31 09:29:26 +0200
commit237a7c5dfdf2e9d9995e89c2092b49d610edfc86 (patch)
treedb6f7d1b60753921b1af7dfe6ed1bdf8df8a0fd3
parentd82c1b5d05407a5ea8f29d23be316c84d4e1082e (diff)
Replace calls to removed qmlRegisterType overloads
Change-Id: I3cb5a7839dc1648efdf1f4a9a317d7c52232495a Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
-rw-r--r--src/imports/multimedia/multimedia.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/imports/multimedia/multimedia.cpp b/src/imports/multimedia/multimedia.cpp
index 69b26417b..eca1f7591 100644
--- a/src/imports/multimedia/multimedia.cpp
+++ b/src/imports/multimedia/multimedia.cpp
@@ -151,8 +151,8 @@ public:
qmlRegisterUncreatableType<QDeclarativeCameraImageProcessing, 3>(uri, 5, 11, "CameraImageProcessing",
tr("CameraImageProcessing is provided by Camera"));
- qmlRegisterType<QDeclarativeMediaMetaData>();
- qmlRegisterType<QAbstractVideoFilter>();
+ qmlRegisterAnonymousType<QDeclarativeMediaMetaData>(uri, 5);
+ qmlRegisterAnonymousType<QAbstractVideoFilter>(uri, 5);
// 5.13 types
qmlRegisterType<QDeclarativeVideoOutput, 13>(uri, 5, 13, "VideoOutput");
@@ -160,7 +160,7 @@ public:
// 5.15 types
qmlRegisterType<QDeclarativeAudio, 15>(uri, 5, 15, "MediaPlayer");
qmlRegisterType<QDeclarativeVideoOutput, 15>(uri, 5, 15, "VideoOutput");
- qmlRegisterType<QAbstractVideoSurface>();
+ qmlRegisterAnonymousType<QAbstractVideoSurface>(uri, 5);
// The minor version used to be the current Qt 5 minor. For compatibility it is the last
// Qt 5 release.