summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2019-08-05 22:54:33 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2019-08-22 11:40:11 +0200
commita52a3b2aa43870e9b9b76cf628e5e666d7ecc457 (patch)
tree0542eb5539713254622d08f5955c2f55ffc8aab1 /src/gui
parentd1b099c3e3cfcbf86353b53e205c0ebf84cf5592 (diff)
Micro-optimize QAbstractItemModel::setItemData
If b becomes false, we won't call setData ever again. Just bail out the loop early and return in that case. Change-Id: I4b0ed7e21546d686bc3f785209a314a8bed08471 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/gui')
0 files changed, 0 insertions, 0 deletions