| 257 | } |
| 258 | |
| 259 | void Matrix::setColumnCount(int count) { |
| 260 | Q_D(const Matrix); |
| 261 | const auto currCount = d->columnCount(); |
| 262 | if (count == currCount) |
| 263 | return; |
| 264 | |
| 265 | const int diff = count - currCount; |
| 266 | if (diff > 0) |
| 267 | appendColumns(diff); |
| 268 | else if (diff < 0) |
| 269 | removeColumns(currCount + diff, -diff); |
| 270 | } |
| 271 | |
| 272 | STD_SETTER_CMD_IMPL_F_S(Matrix, SetXStart, double, xStart, updateViewHeader) |
| 273 | void Matrix::setXStart(double xStart) { |