diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-06-23 09:32:28 (GMT) |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-06-23 09:36:53 (GMT) |
commit | 59725e0074541ae18868cc9a9922f8a2e1a8b8df (patch) | |
tree | 4c3d80a8f81bdc5efb1c4e8be160f24c153ed158 | |
parent | 929c5160fd4ff9dc3601e1a6391bea4806d38730 (diff) | |
download | Qt-59725e0074541ae18868cc9a9922f8a2e1a8b8df.zip Qt-59725e0074541ae18868cc9a9922f8a2e1a8b8df.tar.gz Qt-59725e0074541ae18868cc9a9922f8a2e1a8b8df.tar.bz2 |
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.
-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 538fa09..b5995f7 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] |