MCPcopy Create free account
hub / github.com/commontk/CTK / toggleHeaderCheckState

Method toggleHeaderCheckState

Libs/Widgets/ctkCheckableModelHelper.cpp:491–503  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

489
490//-----------------------------------------------------------------------------
491void ctkCheckableModelHelper::toggleHeaderCheckState(int section)
492{
493 // If the section is checkable, toggle the check state.
494 if(!this->isHeaderCheckable(section))
495 {
496 return;
497 }
498 // I've no strong feeling to turn the state checked or unchecked when the
499 // state is PartiallyChecked.
500 this->setHeaderCheckState(
501 section, this->headerCheckState(section) == Qt::Checked ?
502 Qt::Unchecked : Qt::Checked);
503}
504
505//-----------------------------------------------------------------------------
506void ctkCheckableModelHelper::onHeaderDataChanged(Qt::Orientation orient,

Callers 3

mouseReleaseEventMethod · 0.80

Calls 3

isHeaderCheckableMethod · 0.95
setHeaderCheckStateMethod · 0.95
headerCheckStateMethod · 0.95

Tested by 2