qt5base-lts/tests/auto/gui
Giuseppe D'Angelo bbda968a0a Fix QRegExpValidator::validate docs about the pos parameter
The code sets it to input.length() iff the regexp doesn't
match the string, while the docs say it's *always* set.

Therefore, make the docs match what the code does and
add a simple test to enforce it.

We're not changing the code to match the docs because

1) it's better to stay conservative (we don't want
to break existing behaviour);

2) this behaviour mimics what the int/double validators do
(they don't move pos at all).

Change-Id: I958074558de6b0fc5944101c6535fc7e00442ae9
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
2012-10-22 22:42:26 +02:00
..
image Invalidate old QImage data if load()/loadFromData() has failed 2012-10-10 13:24:23 +02:00
itemmodels normalise signal/slot signatures [QtGui tests] 2012-10-22 08:41:27 +02:00
kernel normalise signal/slot signatures [QtGui tests] 2012-10-22 08:41:27 +02:00
math3d Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
painting Make QPen default to 1-width non-cosmetic. 2012-10-22 19:36:43 +02:00
qopengl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
text normalise signal/slot signatures [QtGui tests] 2012-10-22 08:41:27 +02:00
util Fix QRegExpValidator::validate docs about the pos parameter 2012-10-22 22:42:26 +02:00
gui.pro Move QStandardItem/QStandardItemModel to QtGui 2012-06-29 22:42:19 +02:00