[vlc-devel] [PATCH 01/15] qt: register metatype 'QList<QQmlError>'
Fatih Uzunoglu
fuzun54 at outlook.com
Thu Feb 11 21:23:29 UTC 2021
---
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)
--
2.27.0
More information about the vlc-devel
mailing list