summaryrefslogtreecommitdiff
path: root/src/plugins/diffeditor/diffutils.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2017-11-27 09:12:14 +0100
committerhjk <hjk@qt.io>2017-11-27 09:48:09 +0000
commit23ccfc4b36a6a7c44cf1a4eb8973dfb7946df7f9 (patch)
tree5a8c90f863001aab097dc6b3dc275aeee9f67355 /src/plugins/diffeditor/diffutils.cpp
parentdfcd5734278e9e9fc48f4784465cfa4b85dcef4b (diff)
downloadqt-creator-23ccfc4b36a6a7c44cf1a4eb8973dfb7946df7f9.tar.gz
Utils: Delay saving of treeview column sizes while resizing
As discussed in the linked report, QSettings behavior was changed to aggressively attempt to sync on each ::setValue() call, therefore causing excessive disk thrashing when used regularly. This is arguably a regression on the QSettings side, specifically as the documentation suggests some kind of delay and therefore merging of quick sequences of setValue calls (as implemented previously), but since this opinion is not generally shared, Qt applications need to implement that behavior now by themselves. This patch here does that for the reported case in Creator (and uses the opportunity to delay to 2 secs, which should be sufficient for the case) Change-Id: I04af0cd1a042abcf7113b5dde5c36e0338f7acb3 Task-number: QTCREATORBUG-15594 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/diffeditor/diffutils.cpp')
0 files changed, 0 insertions, 0 deletions