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

Method isHeaderCheckable

Libs/Widgets/ctkCheckableModelHelper.cpp:617–625  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

615
616//-----------------------------------------------------------------------------
617bool ctkCheckableModelHelper::isHeaderCheckable(int section)const
618{
619 if (!this->model())
620 {
621 qWarning() << "ctkCheckableModelHelper::isHeaderCheckable : Model has not been set";
622 return (this->forceCheckability() && section == 0);
623 }
624 return !this->model()->headerData(section, this->orientation(), Qt::CheckStateRole).isNull();
625}
626
627//-----------------------------------------------------------------------------
628bool ctkCheckableModelHelper::isCheckable(const QModelIndex& index)const

Callers 2

mousePressEventMethod · 0.80

Calls 5

modelMethod · 0.95
orientationMethod · 0.95
forceCheckabilityMethod · 0.80
isNullMethod · 0.45
headerDataMethod · 0.45

Tested by

no test coverage detected