Removed redundancy in QGraphicsItem documentation.

Snippets [1] and [QGraphicsItem type] are the exact same, each
referenced once, and only in the same file.  Removed the later snippet.

Change-Id: I4f35a8322034b00e9b5f5d6c6d96e652f11f8384
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Benjamin Summerton 2014-12-09 23:15:31 -05:00
parent b9547af45e
commit 30fdd71b63
2 changed files with 1 additions and 16 deletions

View File

@ -245,21 +245,6 @@ scene->destroyItemGroup(group);
//! [17]
//! [QGraphicsItem type]
class CustomItem : public QGraphicsItem
{
...
enum { Type = UserType + 1 };
int type() const
{
// Enable the use of qgraphicsitem_cast with this item.
return Type;
}
...
};
//! [QGraphicsItem type]
//! [18]
class QGraphicsPathItem : public QAbstractGraphicsShapeItem
{

View File

@ -6592,7 +6592,7 @@ void QGraphicsItem::setData(int key, const QVariant &value)
For example:
\snippet code/src_gui_graphicsview_qgraphicsitem.cpp QGraphicsItem type
\snippet code/src_gui_graphicsview_qgraphicsitem.cpp 1
\sa UserType
*/