| 204 | } |
| 205 | |
| 206 | int RDHeaderView::sectionViewportPosition(int logicalIndex) const |
| 207 | { |
| 208 | if(m_customSizing) |
| 209 | { |
| 210 | if(logicalIndex < 0 || logicalIndex >= m_sections.count()) |
| 211 | return -1; |
| 212 | |
| 213 | int offs = m_sections[logicalIndex].offset; |
| 214 | |
| 215 | if(logicalIndex >= m_pinnedColumns) |
| 216 | offs -= offset(); |
| 217 | |
| 218 | return offs; |
| 219 | } |
| 220 | |
| 221 | return QHeaderView::sectionViewportPosition(logicalIndex); |
| 222 | } |
| 223 | |
| 224 | int RDHeaderView::visualIndexAt(int position) const |
| 225 | { |
no test coverage detected