QHeaderView: - avoid cursor move on setDefaultSectionSize
authorThorbjørn Lund Martsum <tmartsum@gmail.com>
Thu, 22 Nov 2012 18:49:05 +0000 (19:49 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sun, 25 Nov 2012 07:29:39 +0000 (08:29 +0100)
commit8d4544f00d9b977ac7b5bf8b0c4b783ded4084de
tree683404f140766bd85fa790f4d1d0bb5de8e4f2d2
parentdfc0fbabe1747e308a5daa8f6d41ff85aa5d86b5
QHeaderView: - avoid cursor move on setDefaultSectionSize

If we are reacting on the sectionResized signal and we call
setDefaultSectionSize we should ensure that we are not moving
the mouse-cursor.

This is an improvement of f8f6acb05ce9aa5fccc329bf5587adf14ed9a710

Change-Id: I1adee7821bc8fcc9633f692bfd515f2c458b12c8
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/widgets/itemviews/qheaderview.cpp
tests/manual/widgets/itemviews/qheaderview/qheaderviewtest1.cpp