doc: document the anonymous enum type correctly
clangqdoc now accepts an unnamed enum type, calls it "anonymous" and allows it to be documented as a named enum type. In this update, several instances appear in subclasses of QGraphicsItem. This update documents them correctly. Change-Id: Ide8026801269154a37e7677a1ce62e0cb392efea Reviewed-by: Topi Reiniö <topi.reinio@qt.io> Reviewed-by: Martin Smith <martin.smith@qt.io>
This commit is contained in:
parent
259197d8df
commit
4d80d634a6
@ -268,27 +268,93 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\variable QGraphicsItem::Type
|
\enum QGraphicsItem::anonymous
|
||||||
|
|
||||||
The type value returned by the virtual type() function in standard
|
The value returned by the virtual type() function in standard
|
||||||
graphics item classes in Qt. All such standard graphics item
|
graphics item classes in Qt. All such standard graphics item classes
|
||||||
classes in Qt are associated with a unique value for Type,
|
in Qt are associated with a unique value for Type, e.g. the value
|
||||||
e.g. the value returned by QGraphicsPathItem::type() is 2.
|
returned by QGraphicsPathItem::type() is 2.
|
||||||
|
|
||||||
|
\value Type
|
||||||
|
|
||||||
\snippet code/src_gui_graphicsview_qgraphicsitem.cpp 18
|
\snippet code/src_gui_graphicsview_qgraphicsitem.cpp 18
|
||||||
|
|
||||||
|
\value UserType The lowest value returned by the virtual type()
|
||||||
|
function for custom subclasses of QGraphicsItem.
|
||||||
|
|
||||||
|
\snippet code/src_gui_graphicsview_qgraphicsitem.cpp 1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\variable QGraphicsItem::UserType
|
\enum QGraphicsPathItem::anonymous
|
||||||
|
|
||||||
The lowest permitted type value for custom items (subclasses
|
The value returned by the virtual type() function.
|
||||||
of QGraphicsItem or any of the standard items). This value is
|
|
||||||
used in conjunction with a reimplementation of QGraphicsItem::type()
|
|
||||||
and declaring a Type enum value. Example:
|
|
||||||
|
|
||||||
\snippet code/src_gui_graphicsview_qgraphicsitem.cpp 1
|
\value Type A graphics path item
|
||||||
|
*/
|
||||||
|
|
||||||
\note UserType = 65536
|
/*!
|
||||||
|
\enum QGraphicsRectItem::anonymous
|
||||||
|
|
||||||
|
The value returned by the virtual type() function.
|
||||||
|
|
||||||
|
\value Type A graphics rect item
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\enum QGraphicsEllipseItem::anonymous
|
||||||
|
|
||||||
|
The value returned by the virtual type() function.
|
||||||
|
|
||||||
|
\value Type A graphics ellipse item
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\enum QGraphicsPolygonItem::anonymous
|
||||||
|
|
||||||
|
The value returned by the virtual type() function.
|
||||||
|
|
||||||
|
\value Type A graphics polygon item
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\enum QGraphicsPixmapItem::anonymous
|
||||||
|
|
||||||
|
The value returned by the virtual type() function.
|
||||||
|
|
||||||
|
\value Type A graphics pixmap item
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\enum QGraphicsTextItem::anonymous
|
||||||
|
|
||||||
|
The value returned by the virtual type() function.
|
||||||
|
|
||||||
|
\value Type A graphics text item
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\enum QGraphicsSimpleTextItem::anonymous
|
||||||
|
|
||||||
|
The value returned by the virtual type() function.
|
||||||
|
|
||||||
|
\value Type A graphics simple text item
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\enum QGraphicsItemGroup::anonymous
|
||||||
|
|
||||||
|
The value returned by the virtual type() function.
|
||||||
|
|
||||||
|
\value Type A graphics item group
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\enum QGraphicsLineItem::anonymous
|
||||||
|
|
||||||
|
The value returned by the virtual type() function.
|
||||||
|
|
||||||
|
\value Type A graphics line item
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user