diff --git a/modules/gui/qt/maininterface/mainui.cpp b/modules/gui/qt/maininterface/mainui.cpp index 962e0f91e477fa6274503247d290044c06455ea1..a91dcd6c8ab5728de6eb68271d3f45ded96d6108 100644 --- a/modules/gui/qt/maininterface/mainui.cpp +++ b/modules/gui/qt/maininterface/mainui.cpp @@ -182,7 +182,6 @@ void MainUI::registerQMLTypes() registerAnonymousType<MLArtist>("org.videolan.medialib", 1); registerAnonymousType<MLAlbumTrack>("org.videolan.medialib", 1); registerAnonymousType<MLGenre>("org.videolan.medialib", 1); - registerAnonymousType<MLVideo>("org.videolan.medialib", 1); qmlRegisterType<AlbumContextMenu>( "org.videolan.medialib", 0, 1, "AlbumContextMenu" ); qmlRegisterType<ArtistContextMenu>( "org.videolan.medialib", 0, 1, "ArtistContextMenu" ); diff --git a/modules/gui/qt/medialibrary/mlvideo.cpp b/modules/gui/qt/medialibrary/mlvideo.cpp index acedfd8f9be8a1f118128d455e8dc138d4df2f2b..10bb975e75e3b21e6999791517687c27ac4815d7 100644 --- a/modules/gui/qt/medialibrary/mlvideo.cpp +++ b/modules/gui/qt/medialibrary/mlvideo.cpp @@ -72,9 +72,8 @@ unsigned int AudioDescription::getSampleRate() const return m_sampleRate; } -MLVideo::MLVideo(vlc_medialibrary_t* ml, const vlc_ml_media_t* data, QObject* parent) - : QObject( parent ) - , MLItem( MLItemId( data->i_id, VLC_ML_PARENT_UNKNOWN ) ) +MLVideo::MLVideo(vlc_medialibrary_t* ml, const vlc_ml_media_t* data) + : MLItem( MLItemId( data->i_id, VLC_ML_PARENT_UNKNOWN ) ) , m_ml( ml ) , m_title( QString::fromUtf8( data->psz_title ) ) , m_thumbnail( QString::fromUtf8( data->thumbnails[VLC_ML_THUMBNAIL_SMALL].psz_mrl ) ) diff --git a/modules/gui/qt/medialibrary/mlvideo.hpp b/modules/gui/qt/medialibrary/mlvideo.hpp index 58d105c3d33a06d8375bec00236ddb9dcc9e79e6..604b17a37af27f2a9625d8a56bd60a81f28c6b4a 100644 --- a/modules/gui/qt/medialibrary/mlvideo.hpp +++ b/modules/gui/qt/medialibrary/mlvideo.hpp @@ -85,12 +85,10 @@ private: Q_DECLARE_METATYPE(AudioDescription) -class MLVideo : public QObject, public MLItem +class MLVideo : public MLItem { - Q_OBJECT - public: - MLVideo(vlc_medialibrary_t *ml, const vlc_ml_media_t *data, QObject *parent = nullptr); + MLVideo(vlc_medialibrary_t *ml, const vlc_ml_media_t *data); QString getTitle() const; QString getThumbnail();