Skip to content

Commit

Permalink
Adding missing QT macros for QMetaType (#6857)
Browse files Browse the repository at this point in the history
Adding missing QT macros for QMetaType
https://doc.qt.io/qt-6/qmetatype.html
  • Loading branch information
bjornblissing authored Oct 5, 2024
1 parent 9e34cbc commit 58ad295
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cfg/qt.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5335,7 +5335,11 @@
<define name="Q_DECLARE_INTERFACE(ClassName,Identifier)" value=""/>
<define name="Q_DECLARE_LOGGING_CATEGORY(name)" value="extern const QLoggingCategory &amp;name();"/>
<define name="Q_DECLARE_OPERATORS_FOR_FLAGS(x)" value=""/>
<define name="Q_DECLARE_METATYPE(x)" value=""/>
<define name="Q_DECLARE_ASSOCIATIVE_CONTAINER_METATYPE(Container)" value=""/>
<define name="Q_DECLARE_METATYPE(Type)" value=""/>
<define name="Q_DECLARE_OPAQUE_POINTER(PointerType)" value="QT_BEGIN_NAMESPACE namespace QtPrivate { template &lt;&gt; struct IsPointerDeclaredOpaque&lt;PointerType&gt;: std::true_type {};} QT_END_NAMESPACE"/>
<define name="Q_DECLARE_SEQUENTIAL_CONTAINER_METATYPE(Container)" value=""/>
<define name="Q_DECLARE_SMART_POINTER_METATYPE(SmartPointer)" value=""/>
<define name="Q_DECLARE_BUILTIN_METATYPE(TYPE, NAME)" value=""/>
<define name="Q_DECLARE_PRIVATE(Class)" value="inline Class##Private* d_func() { return reinterpret_cast&lt;Class##Private*&gt;(qGetPtrHelper(d_ptr)); } inline const Class##Private d_func() const { return reinterpret_cast&lt;const Class##Private *&gt;(qGetPtrHelper(d_ptr)); } friend class Class##Private;"/>
<define name="Q_DECLARE_PRIVATE_D(Dptr, Class)" value="inline Class##Private* d_func() { return reinterpret_cast&lt;Class##Private *&gt;(qGetPtrHelper(Dptr)); } inline const Class##Private* d_func() const { return reinterpret_cast&lt;const Class##Private *&gt;(qGetPtrHelper(Dptr)); } friend class Class##Private;"/>
Expand Down

0 comments on commit 58ad295

Please sign in to comment.