Fix duplicated MOC declaration

This commit is contained in:
Gioacchino Mazzurco 2026-06-16 21:51:34 +02:00
parent f3be330773
commit 724db9ae6a
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051
3 changed files with 7 additions and 3 deletions

View File

@ -123,6 +123,13 @@ private:
Ui::PostedItem *ui;
};
// Qt5 only (see GxsFeedItem.h/GxsGroupFeedItem.h): Qt6 auto-registers this
// complete type with the metatype system, and an explicit specialization here
// clashes with the implicit QMetaTypeId instantiation in CMake AUTOMOC's single
// mocs_compilation.cpp translation unit ("specialization after instantiation").
// qmake compiles each moc separately.
#if QT_VERSION < QT_VERSION_CHECK(6,0,0)
Q_DECLARE_METATYPE(RsPostedPost)
#endif
#endif

View File

@ -77,8 +77,6 @@ static const int POSTED_TABS_POSTS = 1;
#define IMAGE_AUTHOR ":/images/user/personal64.png"
#define IMAGE_COPYHTTP ":/images/emblem-web.png"
Q_DECLARE_METATYPE(RsPostedPost);
// Delegate used to paint into the table of thumbnails
//===================================================================================================================================

View File

@ -36,7 +36,6 @@
//#define DEBUG_CHANNEL_MODEL
Q_DECLARE_METATYPE(RsMsgMetaData)
Q_DECLARE_METATYPE(RsPostedPost)
const uint32_t RsPostedPostsModel::DEFAULT_DISPLAYED_NB_POSTS = 10;