summaryrefslogtreecommitdiffstats
path: root/tests/auto/qcombobox
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-10-22 12:49:40 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-10-23 08:34:46 (GMT)
commitcc4d3fbc317bc9044c3ce23569f0225b29af4fd5 (patch)
treec76592219af2ddfc1d2a049d03ee98f8807a3639 /tests/auto/qcombobox
parenta95883e90fadeddd2f49da6765fb2d79f7ce77bd (diff)
downloadQt-cc4d3fbc317bc9044c3ce23569f0225b29af4fd5.zip
Qt-cc4d3fbc317bc9044c3ce23569f0225b29af4fd5.tar.gz
Qt-cc4d3fbc317bc9044c3ce23569f0225b29af4fd5.tar.bz2
QGraphicsLineItem leave traces when moving around (reg. against 4.5)
The problem was that QGraphicsLineItem's bounding rect is an empty rect (either width is 0 or height is 0), and when updating the item's old occupied area, we explicitly checked whether the rect was empty() or not. In case of being empty (rect.isEmpty()) we did nothing, which was the root of the problem. We can safely remove the rect.isEmpty() check without any significant loss of performance since the common case is that the rect is non-empty. And in the case of being empty, we'll bail out from QGraphicsViewPrivate::updateRect's highly optimized rect intersection. Auto test included. Task: QTBUG-4877 Reviewed-by: alexis
Diffstat (limited to 'tests/auto/qcombobox')
0 files changed, 0 insertions, 0 deletions