| 86 | } |
| 87 | |
| 88 | bool CCheckBoxHeader::isCheckable(int index) const |
| 89 | { |
| 90 | QStandardItemModel* pModel = qobject_cast<QStandardItemModel*>(this->model()); |
| 91 | if(pModel) { |
| 92 | QStandardItem* item = nullptr; |
| 93 | if(orientation() == Qt::Horizontal) |
| 94 | item = pModel->horizontalHeaderItem(index); |
| 95 | else |
| 96 | item = pModel->verticalHeaderItem(index); |
| 97 | return item && item->isCheckable(); |
| 98 | } |
| 99 | |
| 100 | return m_CheckableSections.contains(index); |
| 101 | } |
| 102 | |
| 103 | QRect CCheckBoxHeader::CheckboxRect(const QRect §ionRect) const |
| 104 | { |
no test coverage detected