| 515 | } |
| 516 | |
| 517 | void RDHeaderView::setRootIndex(const QModelIndex &index) |
| 518 | { |
| 519 | QHeaderView::setRootIndex(index); |
| 520 | |
| 521 | // need to enqueue this after the root index is actually processed (this function is called |
| 522 | // *before* the root index changes). |
| 523 | if(!m_sectionStretchHints.isEmpty()) |
| 524 | { |
| 525 | QPointer<RDHeaderView> ptr = this; |
| 526 | GUIInvoke::defer(this, [this]() { |
| 527 | cacheSectionMinSizes(); |
| 528 | resizeSectionsWithHints(); |
| 529 | }); |
| 530 | } |
| 531 | } |
| 532 | |
| 533 | void RDHeaderView::headerDataChanged(Qt::Orientation orientation, int logicalFirst, int logicalLast) |
| 534 | { |
no test coverage detected