-----------------------------------------------------------------------------
| 626 | |
| 627 | //----------------------------------------------------------------------------- |
| 628 | bool ctkCheckableModelHelper::isCheckable(const QModelIndex& index)const |
| 629 | { |
| 630 | if (!this->model()) |
| 631 | { |
| 632 | qWarning() << "ctkCheckableModelHelper::isCheckable : Model has not been set"; |
| 633 | return (this->forceCheckability() && index.column() == 0); |
| 634 | } |
| 635 | return !this->model()->data(index, Qt::CheckStateRole).isNull(); |
| 636 | } |
| 637 | |
| 638 | //----------------------------------------------------------------------------- |
| 639 | Qt::CheckState ctkCheckableModelHelper::headerCheckState(int section)const |