From 9efd5eaed3cfedf0c4d8348de8208b700b6b190b Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Thu, 23 Apr 2020 21:40:36 +0800 Subject: [PATCH] Register datatype properly Qt 5.9.5 doesn't seem to recognize it, this patch fixes it. Fix up: d8401c76f568e463022dd653124e8c99f33d0020. Related: #12601. --- src/base/bittorrent/session.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/base/bittorrent/session.h b/src/base/bittorrent/session.h index f760233c8..3b03f9d61 100644 --- a/src/base/bittorrent/session.h +++ b/src/base/bittorrent/session.h @@ -759,4 +759,9 @@ namespace BitTorrent }; } +#if (QT_VERSION < QT_VERSION_CHECK(5, 10, 0)) +Q_DECLARE_METATYPE(std::shared_ptr) +const int sharedPtrLtEntryTypeID = qRegisterMetaType>(); +#endif + #endif // BITTORRENT_SESSION_H