Commit 260abc1e authored by Ahmad Samir's avatar Ahmad Samir Committed by Tomaz Canabrava
Browse files

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>
parent b534adb2
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment