-----------------------------------------------------------------------------
| 399 | |
| 400 | //----------------------------------------------------------------------------- |
| 401 | void GroundControlPointsModel::removePoint(id_t id) |
| 402 | { |
| 403 | QTE_D(); |
| 404 | |
| 405 | auto const begin = d->points.begin(); |
| 406 | auto const end = d->points.end(); |
| 407 | |
| 408 | auto const i = std::lower_bound(begin, end, id); |
| 409 | if (i != end) |
| 410 | { |
| 411 | auto const r = static_cast<int>(i - begin); |
| 412 | this->beginRemoveRows({}, r, r); |
| 413 | d->points.erase(i); |
| 414 | this->endRemoveRows(); |
| 415 | } |
| 416 | } |
| 417 | |
| 418 | //----------------------------------------------------------------------------- |
| 419 | void GroundControlPointsModel::modifyPoint(id_t id) |
no outgoing calls
no test coverage detected