Q_DECLARE_METATYPE isn't needed for Qt6 QExplicitlySharedDataPointer

src/profile/Profile.h:815:1: error: specialization of ‘QMetaTypeId<QExplicitlySharedDataPointer<Konsole::Profile> >’ after instantiation
  815 | Q_DECLARE_METATYPE(Konsole::Profile::Ptr)
      | ^~~~~~~~~~~~~~~~~~
src/profile/Profile.h:815:1: error: redefinition of ‘struct QMetaTypeId<QExplicitlySharedDataPointer<Konsole::Profile> >’
/usr/include/qt6/QtCore/qmetatype.h:1124:8: note: previous definition of ‘struct QMetaTypeId<QExplicitlySharedDataPointer<Konsole::Profile> >’
 1124 | struct QMetaTypeId : public QMetaTypeIdQObject<T>
wilder
Ahmad Samir 4 years ago committed by Tomaz Canabrava
parent b534adb2ea
commit 260abc1ec7
  1. 3
      src/profile/Profile.h

@ -809,6 +809,9 @@ inline QVariant Profile::property(Property p) const
}
}
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
Q_DECLARE_METATYPE(Konsole::Profile::Ptr)
#endif
#endif // PROFILE_H

Loading…
Cancel
Save