[Development] From whence cometh Q_NAMESPACE?
Matthew Woehlke
mwoehlke.floss at gmail.com
Fri Jun 14 19:38:35 CEST 2019
On 11/06/2019 11.28, Matthew Woehlke wrote:
> A coworker just pointed out something interesting... the documentation
> of Q_NAMESPACE is in qobject.cpp, which causes it to be documented under
> the documentation for QObject. However, the *definition* comes from
> qobjectdefs.h, which is roughly QMetaObject, and indeed it seems like
> one should not need all of QObject to use Q_NAMESPACE. Q_ENUM and
> Q_ENUM_NS are in the same boat... In fact, so is Q_GADGET and everything
> that can be used with Q_GADGET.
>
> Is this intended? Or would it make sense to move the documentation to
> QMetaObject?
Since code speaks louder than e-mail...
https://codereview.qt-project.org/c/qt/qtbase/+/265168
--
Matthew
More information about the Development
mailing list