-----------------------------------------------------------------------------
| 615 | |
| 616 | //----------------------------------------------------------------------------- |
| 617 | bool 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 | //----------------------------------------------------------------------------- |
| 628 | bool ctkCheckableModelHelper::isCheckable(const QModelIndex& index)const |
no test coverage detected