summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2009-05-25 18:13:34 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2009-05-25 18:13:34 (GMT)
commit23820c30052ea23ecf2226c300fc4819dd294306 (patch)
tree421ae9eae130c430fea6759e0d8c6f67e4f5255f /doc
parent8b34bd541c6aa201c4d872210228bce8217a5e03 (diff)
downloadQt-23820c30052ea23ecf2226c300fc4819dd294306.zip
Qt-23820c30052ea23ecf2226c300fc4819dd294306.tar.gz
Qt-23820c30052ea23ecf2226c300fc4819dd294306.tar.bz2
Doc: Fixed custom graphics item snippet.
As reported on qt-interest: http://lists.trolltech.com/pipermail/qt-interest/2009-May/007036.html Reviewed-by: Trust Me
Diffstat (limited to 'doc')
-rw-r--r--doc/src/snippets/code/src_gui_graphicsview_qgraphicsitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/snippets/code/src_gui_graphicsview_qgraphicsitem.cpp b/doc/src/snippets/code/src_gui_graphicsview_qgraphicsitem.cpp
index a57de9d..d9e38ed 100644
--- a/doc/src/snippets/code/src_gui_graphicsview_qgraphicsitem.cpp
+++ b/doc/src/snippets/code/src_gui_graphicsview_qgraphicsitem.cpp
@@ -6,7 +6,7 @@ public:
{
qreal penWidth = 1;
return QRectF(-10 - penWidth / 2, -10 - penWidth / 2,
- 20 + penWidth / 2, 20 + penWidth / 2);
+ 20 + penWidth, 20 + penWidth);
}
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,