Fix selection in QTableView when rows and columns have been moved
authorMiikka Heikkinen <miikka.heikkinen@digia.com>
Thu, 15 Nov 2012 11:08:12 +0000 (13:08 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 23 Nov 2012 16:04:00 +0000 (17:04 +0100)
commit0457f8bb8e0dbfe1850be645ae9a704ebb85eebd
tree826c282ba0740d5e4412173ee1acd8ccb51224ee
parent526bac5f693ecc028985064a5ae04d3106b9ef68
Fix selection in QTableView when rows and columns have been moved

The determination of top left and bottom right model indexes for the
selection used logical indexes, which resulted in selection truncating
itself if the first or last row or column had been moved to different
position on the table. Changed the logic to use visual indexes instead.

Task-number: QTBUG-28009
Change-Id: I4eb9dab690dafda9d2ab7c452dd6271fad70cb30
Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/widgets/itemviews/qtableview.cpp