[vlc-commits] [Git][videolan/vlc][master] qt: register QList<QQmlError> meta-type early
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Sat Sep 9 08:35:45 UTC 2023
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
3ee8fd10 by Fatih Uzunoglu at 2023-09-09T08:16:11+00:00
qt: register QList<QQmlError> meta-type early
- - - - -
1 changed file:
- modules/gui/qt/qt.cpp
Changes:
=====================================
modules/gui/qt/qt.cpp
=====================================
@@ -51,6 +51,8 @@ extern "C" char **environ;
#include <QMutex>
#include <QtQuickControls2/QQuickStyle>
#include <QLoggingCategory>
+#include <QQmlError>
+#include <QList>
#include "qt.hpp"
@@ -437,6 +439,8 @@ vlc_module_end ()
/*****************************************/
+Q_DECLARE_METATYPE(QQmlError)
+
/* Ugly, but the Qt interface assumes single instance anyway */
static qt_intf_t* g_qtIntf = nullptr;
static vlc::threads::condition_variable wait_ready;
@@ -680,6 +684,7 @@ static inline void registerMetaTypes()
qRegisterMetaType<DialogId>();
qRegisterMetaType<MLItemId>();
qRegisterMetaType<QVector<MLItemId>>();
+ qRegisterMetaType<QList<QQmlError>>();
}
static void *Thread( void *obj )
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3ee8fd10cdf177a8154fece591413d47cca03d1e
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3ee8fd10cdf177a8154fece591413d47cca03d1e
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list