Skip to content

Commit

Permalink
Add missing QtClassHelperMacros (#6859)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornblissing authored Oct 5, 2024
1 parent 88a236c commit e27c9bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cfg/qt.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5341,7 +5341,8 @@
<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;"/>
<define name="Q_DECLARE_PUBLIC(Class)" value="inline Class##Public* d_func() { return reinterpret_cast&lt;Class##Public*&gt;(qGetPtrHelper(d_ptr)); } inline const Class##Public d_func() const { return reinterpret_cast&lt;const Class##Public *&gt;(qGetPtrHelper(d_ptr)); } friend class Class##Public;"/>
<define name="Q_DECLARE_TR_FUNCTIONS(context)" value="public: static inline QString tr(const char *sourceText, const char *disambiguation = Q_NULLPTR, int n = -1) { return QCoreApplication::translate(#context, sourceText, disambiguation, n); } QT_DECLARE_DEPRECATED_TR_FUNCTIONS(context) private:"/>
<define name="Q_DISABLE_COPY(C)" value="C(C&amp;);C&amp; operator=(const C&amp;);"/>
<define name="Q_DISABLE_COPY(Class)" value="Class(C&amp;);Class&amp; operator=(const Class&amp;);"/>
<define name="Q_DISABLE_COPY_MOVE(Class)" value="Class(C&amp;);Class&amp; operator=(const Class&amp;);Class(C&amp;&amp;);Class&amp; operator=(Class&amp;&amp;);"/>
<define name="Q_EMIT" value=""/>
<define name="Q_ENUM(X)" value=""/>
<define name="Q_ENUMS(X)" value=""/>
Expand Down

0 comments on commit e27c9bf

Please sign in to comment.