summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2009-05-25 20:13:34 +0200
committerDavid Boddie <dboddie@trolltech.com>2009-05-25 20:13:34 +0200
commit23820c30052ea23ecf2226c300fc4819dd294306 (patch)
tree421ae9eae130c430fea6759e0d8c6f67e4f5255f /doc/src
parent8b34bd541c6aa201c4d872210228bce8217a5e03 (diff)
downloadqt4-tools-23820c30052ea23ecf2226c300fc4819dd294306.tar.gz
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/src')
-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 a57de9d45a..d9e38ed6c1 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,