Project

General

Profile

Actions

Bug #1082

closed
RV PL

WTableView + SingleSelection + SelectedClicked -> only first column editable

Bug #1082: WTableView + SingleSelection + SelectedClicked -> only first column editable

Added by Rob Van Dyck almost 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Pieter Libin
Target version:
Start date:
12/02/2011
Due date:
% Done:

0%

Estimated time:

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);

</example code>


Files

hello.C (1.21 KB) hello.C Pieter Libin, 01/27/2012 10:12 AM

KD Updated by Koen Deforche over 14 years ago Actions #1

  • Status changed from New to InProgress
  • Assignee set to Pieter Libin
  • Target version set to 3.2.1

PL Updated by Pieter Libin over 14 years ago Actions #2

I attached an example that can be compiled based on the example code of the poster, that is able to reproduce the problem.

PL Updated by Pieter Libin over 14 years ago Actions #3

  • Status changed from InProgress to Resolved

KD Updated by Koen Deforche over 14 years ago Actions #4

  • Status changed from Resolved to Closed

Fixed in 3.2.1

Actions

Also available in: PDF Atom