summaryrefslogtreecommitdiffstats
path: root/src/gui/util/qshadergenerator.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2020-01-31 20:51:03 +0100
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2020-02-21 20:04:21 +0100
commit1559c328d536ceb8b7f78892a60aced4716b40b6 (patch)
tree37bafee4b5e4d155389501a9f4ab420d6fa102ba /src/gui/util/qshadergenerator.cpp
parent3c20b9b97377172dd1fc384bd28d3c7dbff0f523 (diff)
QTableWidget: avoid complete redrawing when an item is removed
When an item gets removed from QTableWidget, the dataChanged() signal is sent out with an invalid index. This triggers a complete repaint which is not needed since only one cell is changed. Fix it by retrieving the model index *before* the internal structure is cleaned for the given item since otherwise index() will no longer find the item and return an invalid index. Change-Id: Ia0d82edb6b44118e8a1546904250ca29d9c45140 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/gui/util/qshadergenerator.cpp')
0 files changed, 0 insertions, 0 deletions