Make multimedia QML types available for the 5.3 import version.
At least one type needs to be registered with the 5.3 version number to make it known to the QML engine. Change-Id: Iacfe62650b4194fbb89135fef7cb148309227ce2 Reviewed-by: Alan Alpert (Personal) <416365416c@gmail.com>
This commit is contained in:
committed by
The Qt Project
parent
eadf1c8c41
commit
b99a4b3025
@@ -95,6 +95,11 @@ public:
|
||||
qmlRegisterUncreatableType<QDeclarativeCameraImageProcessing>(uri, 5, 0, "CameraImageProcessing",
|
||||
trUtf8("CameraImageProcessing is provided by Camera"));
|
||||
|
||||
// Make types available for the 5.3 version
|
||||
// Adding "import QtMultimedia 5.3" in QML will fail unless at least one type is registered
|
||||
// for that version.
|
||||
qmlRegisterType<QSoundEffect>(uri, 5, 3, "SoundEffect");
|
||||
|
||||
qmlRegisterType<QDeclarativeMediaMetaData>();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user