| 494 | } |
| 495 | |
| 496 | void RDHeaderView::setColumnStretchHints(const QList<int> &hints) |
| 497 | { |
| 498 | if(hints.count() != count()) |
| 499 | qCritical() << "Got" << hints.count() << "hints, but have" << count() << "columns"; |
| 500 | m_sectionStretchHints = hints; |
| 501 | |
| 502 | // we take control of the sizing, we don't currently support custom resizing AND stretchy size |
| 503 | // hints. |
| 504 | QHeaderView::setSectionResizeMode(QHeaderView::Fixed); |
| 505 | |
| 506 | cacheSectionMinSizes(); |
| 507 | resizeSectionsWithHints(); |
| 508 | } |
| 509 | |
| 510 | void RDHeaderView::setPinnedColumns(int numColumns, QAbstractScrollArea *scroll) |
| 511 | { |