QTreeView - allow users to control data in the treestructure
authorThorbjørn Lund Martsum <tmartsum@gmail.com>
Thu, 6 Dec 2012 09:42:53 +0000 (10:42 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 7 Aug 2013 12:01:23 +0000 (14:01 +0200)
commit658e42e77a00596b63823482c9b77644556b647c
tree092376fa88c606089b69282f1bde20ae490d0e93
parentb215176da34661969015e4950815fe8297885163
QTreeView - allow users to control data in the treestructure

This patch allows to set which logical index the tree is in.

Before the tree always displayed data from the logical index 0,
but it is actually more likely that the user wants to have data
from visual index 0 (which can be done by special value -1).

There is nothing special about logical index 0, and not being
able to change the tree-data is just annoying.

Change-Id: Ib070ce93343a0d2fbac3ad5a42cb4359401ac87c
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
dist/changes-5.2.0
src/widgets/itemviews/qtreeview.cpp
src/widgets/itemviews/qtreeview.h
src/widgets/itemviews/qtreeview_p.h
tests/manual/widgets/itemviews/itemviews.pro
tests/manual/widgets/itemviews/qtreewidget/main.cpp [new file with mode: 0644]
tests/manual/widgets/itemviews/qtreewidget/qtreewidgettest.pro [new file with mode: 0644]