Commit 33850881 authored by Jens Bache-Wiig's avatar Jens Bache-Wiig Committed by The Qt Project
Browse files

TableView: Expand to single column and prevent multiple use


This fix ensures that we can only add a TableViewColumn exactly
once. It also automatically expands the column with to the viewport
when only one column is in use.

In addition I have disabled dragging when columnCount == 1
as it was pointless.

Change-Id: Ief6011c3e58166907836bf55b0fa6643698192d2
Reviewed-by: default avatarCaroline Chao <caroline.chao@digia.com>
parent 0155e083
Showing with 35 additions and 6 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment