doc: Correct clang parsing errors in qvariant.h
Some old uses of Q_QDOC to prevent the old qdoc C++ parser from seeing declarations it didn't need to see were preventing clang from seeing declarations it did need to see. These have been removed, and some internal documentation has been added to account for some declarations that suddenly became public but should not be seen in the Qt API. Change-Id: Iccf423e5cf8767f0a271150ab59bea54cf90ac46 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>bb10
parent
32c942ce85
commit
49e2746e16
|
|
@ -216,6 +216,7 @@ struct DefinedTypesFilter {
|
|||
\value QChar QChar
|
||||
\value QString QString
|
||||
\value QByteArray QByteArray
|
||||
\value Nullptr \c{std::nullptr_t}
|
||||
|
||||
\value VoidStar \c{void *}
|
||||
\value Long \c{long}
|
||||
|
|
@ -287,6 +288,8 @@ struct DefinedTypesFilter {
|
|||
|
||||
\value User Base value for user types
|
||||
\value UnknownType This is an invalid type id. It is returned from QMetaType for types that are not registered
|
||||
\omitvalue LastCoreType
|
||||
\omitvalue LastGuiType
|
||||
|
||||
Additional types can be registered using Q_DECLARE_METATYPE().
|
||||
|
||||
|
|
|
|||
|
|
@ -441,6 +441,7 @@ public:
|
|||
QJsonValue = 45, QJsonObject = 46, QJsonArray = 47, QJsonDocument = 48,
|
||||
QByteArrayList = 49, QObjectStar = 39, SChar = 40,
|
||||
Void = 43,
|
||||
Nullptr = 51,
|
||||
QVariantMap = 8, QVariantList = 9, QVariantHash = 28,
|
||||
QFont = 64, QPixmap = 65, QBrush = 66, QColor = 67, QPalette = 68,
|
||||
QIcon = 69, QImage = 70, QPolygon = 71, QRegion = 72, QBitmap = 73,
|
||||
|
|
@ -448,6 +449,8 @@ public:
|
|||
QMatrix = 79, QTransform = 80, QMatrix4x4 = 81, QVector2D = 82,
|
||||
QVector3D = 83, QVector4D = 84, QQuaternion = 85, QPolygonF = 86,
|
||||
QSizePolicy = 121,
|
||||
LastCoreType = Nullptr,
|
||||
LastGuiType = QPolygonF,
|
||||
User = 1024
|
||||
};
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -3999,6 +3999,41 @@ QDebug operator<<(QDebug dbg, const QVariant::Type p)
|
|||
\typedef QVariant::DataPtr
|
||||
\internal
|
||||
*/
|
||||
/*! \typedef QVariant::f_construct
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \typedef QVariant::f_clear
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \typedef QVariant::f_null
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \typedef QVariant::f_load
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \typedef QVariant::f_save
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \typedef QVariant::f_compare
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \typedef QVariant::f_convert
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \typedef QVariant::f_canConvert
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \typedef QVariant::f_debugStream
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn DataPtr &QVariant::data_ptr()
|
||||
|
|
|
|||
|
|
@ -360,7 +360,6 @@ class Q_CORE_EXPORT QVariant
|
|||
{ return canConvert(qMetaTypeId<T>()); }
|
||||
|
||||
public:
|
||||
#ifndef Q_QDOC
|
||||
struct PrivateShared
|
||||
{
|
||||
inline PrivateShared(void *v) : ptr(v), ref(1) { }
|
||||
|
|
@ -431,7 +430,6 @@ class Q_CORE_EXPORT QVariant
|
|||
f_canConvert canConvert;
|
||||
f_debugStream debugStream;
|
||||
};
|
||||
#endif
|
||||
|
||||
inline bool operator==(const QVariant &v) const
|
||||
{ return cmp(v); }
|
||||
|
|
|
|||
Loading…
Reference in New Issue