summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-06-23 11:15:01 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-06-23 12:17:30 (GMT)
commit4effe88116bc2a21ec44eea9fbc740283cd73190 (patch)
tree23cee1ff79e1a901098259500eec3106a80b746d /src/gui
parenta8a0c956f747cd09ca04cfe8b33d09a8476c6453 (diff)
downloadQt-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')
-rw-r--r--src/gui/painting/qpen.cpp4
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%