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:
parent
b9547af45e
commit
30fdd71b63
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user