summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2010-01-28 07:48:02 (GMT)
committerMartin Smith <msmith@trolltech.com>2010-01-28 07:48:02 (GMT)
commitaa854adabedbe5ff95d02c0371ae90d85921061c (patch)
tree4c6e9c21c0d3954a74dae2dd140bbad9e83fb3d6 /doc
parent634eac05a6475280f2a1cc6e41e23c0c35628247 (diff)
downloadQt-aa854adabedbe5ff95d02c0371ae90d85921061c.zip
Qt-aa854adabedbe5ff95d02c0371ae90d85921061c.tar.gz
Qt-aa854adabedbe5ff95d02c0371ae90d85921061c.tar.bz2
doc: Document the "Type" enum value as a const in variable.
Task-number: QTBUG-7605
Diffstat (limited to 'doc')
-rw-r--r--doc/src/snippets/code/src_gui_graphicsview_qgraphicsitem.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/src/snippets/code/src_gui_graphicsview_qgraphicsitem.cpp b/doc/src/snippets/code/src_gui_graphicsview_qgraphicsitem.cpp
index 483c675..4f27661 100644
--- a/doc/src/snippets/code/src_gui_graphicsview_qgraphicsitem.cpp
+++ b/doc/src/snippets/code/src_gui_graphicsview_qgraphicsitem.cpp
@@ -260,3 +260,14 @@ class CustomItem : public QGraphicsItem
...
};
//! [QGraphicsItem type]
+
+//! [18]
+class QGraphicsPathItem : public QAbstractGraphicsShapeItem
+{
+ public:
+ enum { Type = 2 };
+ int type() const { return Type; }
+ ...
+};
+//! [18]
+