-----------------------------------------------------------------------------
| 489 | |
| 490 | //----------------------------------------------------------------------------- |
| 491 | void 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 | //----------------------------------------------------------------------------- |
| 506 | void ctkCheckableModelHelper::onHeaderDataChanged(Qt::Orientation orient, |