[vlc-commits] [Git][videolan/vlc][master] qt: remove unnecessary Q_DECLARE_METATYPE usages

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Jul 21 13:24:43 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
21e9d474 by Fatih Uzunoglu at 2023-07-21T12:57:37+00:00
qt: remove unnecessary Q_DECLARE_METATYPE usages

If Q_GADGET macro is used, it is not necessary
to use Q_DECLARE_METATYPE

- - - - -


6 changed files:

- modules/gui/qt/dialogs/dialogs/dialogmodel.hpp
- modules/gui/qt/medialibrary/mlqmltypes.hpp
- modules/gui/qt/medialibrary/mlvideo.hpp
- modules/gui/qt/network/networkmediamodel.hpp
- modules/gui/qt/playlist/playlist_item.hpp
- modules/gui/qt/util/vlctick.hpp


Changes:

=====================================
modules/gui/qt/dialogs/dialogs/dialogmodel.hpp
=====================================
@@ -52,8 +52,6 @@ public: // Variables
     vlc_dialog_id * m_id;
 };
 
-Q_DECLARE_METATYPE(DialogId)
-
 
 class DialogErrorModel : public QAbstractListModel, public Singleton<DialogErrorModel>
 {


=====================================
modules/gui/qt/medialibrary/mlqmltypes.hpp
=====================================
@@ -66,8 +66,6 @@ public:
     }
 };
 
-Q_DECLARE_METATYPE(MLItemId)
-
 class MLItem
 {
 public:


=====================================
modules/gui/qt/medialibrary/mlvideo.hpp
=====================================
@@ -57,8 +57,6 @@ private:
     unsigned int m_fps;
 };
 
-Q_DECLARE_METATYPE(VideoDescription)
-
 class AudioDescription
 {
     Q_GADGET
@@ -85,8 +83,6 @@ private:
     unsigned int m_sampleRate;
 };
 
-Q_DECLARE_METATYPE(AudioDescription)
-
 class MLVideo : public MLItem
 {
 public:


=====================================
modules/gui/qt/network/networkmediamodel.hpp
=====================================
@@ -99,8 +99,6 @@ private:
     const QString m_display;
 };
 
-Q_DECLARE_METATYPE(PathNode)
-
 class NetworkMediaModel : public QAbstractListModel
 {
     Q_OBJECT
@@ -249,6 +247,4 @@ private:
     QVariantList m_path;
 };
 
-Q_DECLARE_METATYPE(NetworkTreeItem)
-
 #endif // MLNETWORKMEDIAMODEL_HPP


=====================================
modules/gui/qt/playlist/playlist_item.hpp
=====================================
@@ -108,6 +108,4 @@ static_assert(sizeof(PlaylistItem) == sizeof(void *), "invalid size of PlaylistI
 //  } // namespace playlist
 //} // namespace vlc
 
-Q_DECLARE_METATYPE(PlaylistItem)
-
 #endif


=====================================
modules/gui/qt/util/vlctick.hpp
=====================================
@@ -75,6 +75,4 @@ private:
     vlc_tick_t m_ticks;
 };
 
-Q_DECLARE_METATYPE(VLCTick)
-
 #endif // VLCTICK_HPP



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/21e9d4742052d96bc27f4a02ebb39c0ad7ae3e6d

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/21e9d4742052d96bc27f4a02ebb39c0ad7ae3e6d
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