| 267 | } |
| 268 | |
| 269 | void RDHeaderView::resizeSection(int logicalIndex, int size) |
| 270 | { |
| 271 | if(!m_customSizing) |
| 272 | return QHeaderView::resizeSection(logicalIndex, size); |
| 273 | |
| 274 | if(logicalIndex >= 0 && logicalIndex < m_sections.count()) |
| 275 | { |
| 276 | int oldSize = m_sections[logicalIndex].size; |
| 277 | m_sections[logicalIndex].size = size; |
| 278 | |
| 279 | emit sectionResized(logicalIndex, oldSize, size); |
| 280 | } |
| 281 | |
| 282 | cacheSections(); |
| 283 | } |
| 284 | |
| 285 | void RDHeaderView::resizeSections(QHeaderView::ResizeMode mode) |
| 286 | { |