qt5base-lts/tests/manual/widgets/itemviews/qheaderview
Thorbjørn Lund Martsum e0fc088c0c Qt 5.0 QTreeView. Prevent manual moving of the first section
This prevents the user of moving the leftmost column.

There will be no API to allow move of the tree-structure.
It is very weird to do that, so it shouldn't be a problem.

In case it is a big problem somewhere it can be hacked with:
QTableView unused;
unused.setVerticalHeader(tree->header());
tree->header()->setParent(tree);
unused.setVerticalHeader(new QHeaderView(Qt::Horizontal));

Task-number: QTBUG-332

Change-Id: I3a251c8d0fd472ec0ad7edb20a7f3e00af7e0da8
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
2012-11-02 19:49:22 +01:00
..
qheaderviewtest1.cpp Qt 5.0 QTreeView. Prevent manual moving of the first section 2012-11-02 19:49:22 +01:00
qheaderviewtest.pro Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00