[vlc-commits] qt: register metatype 'QList<QQmlError>'

Fatih Uzunoglu git at videolan.org
Wed Feb 17 09:31:43 UTC 2021


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Fri Feb 12 00:23:29 2021 +0300| [28ca5a599c16073e3a76a583eac2542e9b1d4173] | committer: Pierre Lamot

qt: register metatype 'QList<QQmlError>'

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=28ca5a599c16073e3a76a583eac2542e9b1d4173
---

 modules/gui/qt/maininterface/mainui.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/qt/maininterface/mainui.cpp b/modules/gui/qt/maininterface/mainui.cpp
index 02d9cab54b..99be04785c 100644
--- a/modules/gui/qt/maininterface/mainui.cpp
+++ b/modules/gui/qt/maininterface/mainui.cpp
@@ -230,6 +230,8 @@ void MainUI::registerQMLTypes()
     qmlRegisterType<NetworkDeviceContextMenu>( "org.videolan.vlc", 0, 1, "NetworkDeviceContextMenu" );
     qmlRegisterType<PlaylistContextMenu>( "org.videolan.vlc", 0, 1, "PlaylistContextMenu" );
     qmlRegisterType<SortFilterProxyModel>( "org.videolan.vlc", 0, 1, "SortFilterProxyModel" );
+
+    qRegisterMetaType<QList<QQmlError>>("QList<QQmlError>");
 }
 
 void MainUI::onQmlWarning(const QList<QQmlError>& qmlErrors)



More information about the vlc-commits mailing list