Project

General

Profile

Actions

Bug #1082

closed

WTableView + SingleSelection + SelectedClicked -> only first column editable

Added by Rob Van Dyck over 12 years ago. Updated about 12 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);


Files

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

Updated by Koen Deforche about 12 years ago

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

Updated by Pieter Libin about 12 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.

Actions #3

Updated by Pieter Libin about 12 years ago

  • Status changed from InProgress to Resolved
Actions #4

Updated by Koen Deforche about 12 years ago

  • Status changed from Resolved to Closed

Fixed in 3.2.1

Actions

Also available in: Atom PDF