[Development] Q_OBJECT and "override"
Thiago Macieira
thiago.macieira at intel.com
Sat Jun 6 00:31:59 CEST 2015
On Thursday 04 June 2015 17:02:52 Christian Kandeler wrote:
> On 06/04/2015 04:52 PM, Konstantin Ritt wrote:
> > #define Q_OBJECT \
> >
> > public: \
> >
> > Q_OBJECT_CHECK \
> >
> > QT_WARNING_PUSH \
> >
> > Q_OBJECT_NO_OVERRIDE_WARNING \
> >
> > static const QMetaObject staticMetaObject; \
> >
> > virtual const QMetaObject *metaObject() const; \
> >
> > virtual void *qt_metacast(const char *); \
> >
> > virtual int qt_metacall(QMetaObject::Call, int, void **); \
> >
> > QT_WARNING_POP \
>
> Oh, this is already in 5.5... I overlooked it somehow. Well, that makes
> this thread kinda pointless. Sorry about the noise (if the construct
> above indeed works).
Yup, it does. At least until Clang changes behaviour of how pragmas apply to
these kinds of warnings...
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development
mailing list