| 2172 | */ |
| 2173 | |
| 2174 | int QtTableView::maxColOffset() |
| 2175 | { |
| 2176 | int mx = maxXOffset(); |
| 2177 | if ( cellW ) |
| 2178 | return mx/cellW; |
| 2179 | else { |
| 2180 | int xcd=0, col=0; |
| 2181 | while ( col < nCols && mx > (xcd=cellWidth(col)) ) { |
| 2182 | mx -= xcd; |
| 2183 | col++; |
| 2184 | } |
| 2185 | return col; |
| 2186 | } |
| 2187 | } |
| 2188 | |
| 2189 | |
| 2190 | /*! |
nothing calls this directly
no outgoing calls
no test coverage detected