mirror of
https://github.com/RetroShare/RetroShare.git
synced 2026-09-13 18:46:04 +05:00
Fix duplicated MOC declaration
This commit is contained in:
parent
f3be330773
commit
724db9ae6a
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
//===================================================================================================================================
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user