TableView: added resizeToContents and resizeColumnsToContents
authorShawn Rutledge <shawn.rutledge@digia.com>
Wed, 14 Aug 2013 10:07:58 +0000 (12:07 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 22 Jan 2014 17:29:44 +0000 (18:29 +0100)
commit0b575c91d3f2fcd1d22b759ab7c9b6ffe8d4cea0
tree9c6062c2af2150913ef06258d2500a31ddca162d
parentb5e1ed76942c1b0feb7a58db5fe9f24ce33e06f2
TableView: added resizeToContents and resizeColumnsToContents

These are analogous to QTableView::resizeColumnToContents(i) and
resizeColumnsToContents().  Double-clicking the header
near a width adjustment boundary still provides a means for the user
to do this if the application doesn't do it programmatically.

Change-Id: Ibded0c9f255301b461dac7080901fc6065fdbe5e
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
src/controls/TableView.qml
src/controls/TableViewColumn.qml
tests/auto/controls/data/tableview/table_resizecolumns.qml [new file with mode: 0644]
tests/auto/controls/data/tst_tableview.qml