diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-06-23 11:32:28 +0200 |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-06-23 11:36:53 +0200 |
commit | 59725e0074541ae18868cc9a9922f8a2e1a8b8df (patch) | |
tree | 4c3d80a8f81bdc5efb1c4e8be160f24c153ed158 /doc/src/snippets | |
parent | 929c5160fd4ff9dc3601e1a6391bea4806d38730 (diff) |
Fix the dash pattern examples in the documentation of QPen
The custom dash pattern must have an even number of entries. Our
examples were using an odd number.
Diffstat (limited to 'doc/src/snippets')
-rw-r--r-- | doc/src/snippets/code/src_gui_painting_qpen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/snippets/code/src_gui_painting_qpen.cpp b/doc/src/snippets/code/src_gui_painting_qpen.cpp index 538fa09b34..b5995f7dcd 100644 --- a/doc/src/snippets/code/src_gui_painting_qpen.cpp +++ b/doc/src/snippets/code/src_gui_painting_qpen.cpp @@ -25,7 +25,7 @@ QVector<qreal> dashes; qreal space = 4; dashes << 1 << space << 3 << space << 9 << space - << 27 << space << 9; + << 27 << space << 9 << space; pen.setDashPattern(dashes); //! [2] @@ -36,6 +36,6 @@ QPen pen; QVector<qreal> dashes; qreal space = 4; dashes << 1 << space << 3 << space << 9 << space - << 27 << space << 9; + << 27 << space << 9 << space; pen.setDashPattern(dashes); //! [3] |