diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-06-23 11:15:01 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-06-23 12:17:30 (GMT) |
commit | 4effe88116bc2a21ec44eea9fbc740283cd73190 (patch) | |
tree | 23cee1ff79e1a901098259500eec3106a80b746d /src/gui/painting | |
parent | a8a0c956f747cd09ca04cfe8b33d09a8476c6453 (diff) | |
download | Qt-4effe88116bc2a21ec44eea9fbc740283cd73190.zip Qt-4effe88116bc2a21ec44eea9fbc740283cd73190.tar.gz Qt-4effe88116bc2a21ec44eea9fbc740283cd73190.tar.bz2 |
Added QPen warning when setting dash pattern with non-positive entries.
Task-number: 256720
Reviewed-by: Trond
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qpen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/painting/qpen.cpp b/src/gui/painting/qpen.cpp index b0da5e2..36059f2 100644 --- a/src/gui/painting/qpen.cpp +++ b/src/gui/painting/qpen.cpp @@ -462,8 +462,8 @@ QVector<qreal> QPen::dashPattern() const Sets the dash pattern for this pen to the given \a pattern. This implicitly converts the style of the pen to Qt::CustomDashLine. - The pattern must be specified as an even number of entries where - the entries 1, 3, 5... are the dashes and 2, 4, 6... are the + The pattern must be specified as an even number of positive entries + where the entries 1, 3, 5... are the dashes and 2, 4, 6... are the spaces. For example: \table 100% |