| 612 | } |
| 613 | |
| 614 | void |
| 615 | TableModel::setRowCount(int rows) |
| 616 | { |
| 617 | if ( (rows < 0) || (_imp->rowCount == rows) ) { |
| 618 | return; |
| 619 | } |
| 620 | if (_imp->rowCount < rows) { |
| 621 | insertRows(std::max(_imp->rowCount, 0), rows - _imp->rowCount); |
| 622 | } else { |
| 623 | removeRows(std::max(rows, 0), _imp->rowCount - rows); |
| 624 | } |
| 625 | } |
| 626 | |
| 627 | void |
| 628 | TableModel::setColumnCount(int columns) |
no test coverage detected