diff options
author | David Boddie <dboddie@trolltech.com> | 2009-05-25 20:13:34 +0200 |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2009-05-25 20:13:34 +0200 |
commit | 23820c30052ea23ecf2226c300fc4819dd294306 (patch) | |
tree | 421ae9eae130c430fea6759e0d8c6f67e4f5255f /doc/src | |
parent | 8b34bd541c6aa201c4d872210228bce8217a5e03 (diff) | |
download | qt4-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.cpp | 2 |
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, |