qt5base-lts/tests/auto/widgets/itemviews/qabstractitemview/qabstractitemview.pro
Christian Ehrlicher 8de62d3432 QAbstractItemView::dataChanged(): optimize call to QWidget::update()
When topLeft and bottomRight are different in QAIV::dataChanged(), the
current implementation simply calls QWidget::update() without checking
if the affected cells are visible. This results in a big performance hit
when cells are updated frequently.
Now try to compute the exact update rect by iterating through the
modified indexes.

Fixes: QTBUG-58580
Change-Id: I97de567d494e40ed8cdb1ea1f5b3cf3a2f60455e
Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
2020-03-28 09:03:18 +01:00

5 lines
161 B
Prolog

CONFIG += testcase
TARGET = tst_qabstractitemview
QT += widgets testlib testlib-private gui-private widgets-private
SOURCES += tst_qabstractitemview.cpp