View Issue Details

IDProjectCategoryView StatusLast Update
0001141Slicer4Core: GUIpublic2014-05-13 12:50
Reporterfinetjul Assigned Tofinetjul  
PrioritylowSeverityfeatureReproducibilityN/A
Status acknowledgedResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0001141: Add utility function for ctkCheckableHeaderView
Description

Right now, to create a checkable header view, the following lines are needed:
this->FileWidget->model()->setHeaderData(NodeNameColumn, Qt::Horizontal,
Qt::Unchecked, Qt::CheckStateRole);
QHeaderView previousHeaderView = this->FileWidget->horizontalHeader();
ctkCheckableHeaderView
headerView = new ctkCheckableHeaderView(Qt::Horizontal, this->FileWidget);
headerView->setClickable(previousHeaderView->isClickable());
headerView->setMovable(previousHeaderView->isMovable());
headerView->setHighlightSections(previousHeaderView->highlightSections());
headerView->setStretchLastSection(previousHeaderView->stretchLastSection());
headerView->setPropagateToItems(true);
this->FileWidget->setHorizontalHeader(headerView);

It would be nice if a "copy" function could be used to easily instanciate a checkable header view that "replaces" an existing header view.

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2011-04-18 10:10 finetjul New Issue
2011-04-18 10:10 finetjul Status new => assigned
2011-04-18 10:10 finetjul Assigned To => finetjul
2011-06-30 10:29 finetjul Category QtGUI => GUI
2012-08-22 05:54 jcfr Target Version => Slicer 4.3.0
2013-08-09 04:37 finetjul Target Version Slicer 4.3.0 => Slicer 4.4.0
2014-05-13 11:07 jcfr Target Version Slicer 4.4.0 =>
2014-05-13 12:50 jcfr Status assigned => acknowledged