Bug #1082
closedWTableView + SingleSelection + SelectedClicked -> only first column editable
0%
Description
When using a WTableView with 2 columns in combination with the (SingleSelection or ExtendedSelection) and SelectedClicked modus you can only edit the first column. The second one cannot be edited.
WStandardItemModel *model = new WStandardItemModel(0, 0, root());
WStandardItem *name = new WStandardItem("1");
name->setFlags(ItemIsSelectable | ItemIsEditable);
model->setItem(0,0, name);
WStandardItem *name2 = new WStandardItem("2");
name2->setFlags(ItemIsSelectable | ItemIsEditable);
model->setItem(0,1, name2);
model->setHeaderData(0, WString("h0"));
model->setHeaderData(1, WString("h1"));
WTableView *table = new WTableView(root());
table->setModel(model);
table->setSelectionMode(SelectionMode::SingleSelection);
table->setEditTriggers(WAbstractItemView::SelectedClicked);
Files
Updated by Koen Deforche almost 13 years ago
- Status changed from New to InProgress
- Assignee set to Pieter Libin
- Target version set to 3.2.1
Updated by Pieter Libin almost 13 years ago
I attached an example that can be compiled based on the example code of the poster, that is able to reproduce the problem.
Updated by Pieter Libin almost 13 years ago
- Status changed from InProgress to Resolved