QHeaderView - Fix auto-scroll on manual move on sections
authorThorbjørn Lund Martsum <tmartsum@gmail.com>
Wed, 31 Oct 2012 15:01:53 +0000 (16:01 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 23 Nov 2012 16:04:00 +0000 (17:04 +0100)
commit2e78d7ac30813add2f57f8b50c969fb71212e3e6
treef67d02d948c7621a9d304f96068598dbfd7228c7
parentc6754c2720d09488ba7483bb6ef8c37a9b7f833c
QHeaderView - Fix auto-scroll on manual move on sections

This patch fixes the manual move of sections when auto scroll is on.
It is done in QAbstractItemView::doAutoScroll by letting the
qheaderView use its parents scrollbars if they are childs of a
QTableView or QTreeView.

Task-number: QTBUG-993
Task-number: QTBUG-1103

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