diff --git a/scwx-qt/source/scwx/qt/model/marker_model.cpp b/scwx-qt/source/scwx/qt/model/marker_model.cpp index 3ea77ecc..eb3e8bee 100644 --- a/scwx-qt/source/scwx/qt/model/marker_model.cpp +++ b/scwx-qt/source/scwx/qt/model/marker_model.cpp @@ -255,25 +255,17 @@ bool MarkerModel::setData(const QModelIndex& index, void MarkerModel::HandleMarkersInitialized(size_t count) { const int index = static_cast(count - 1); - QModelIndex topLeft = createIndex(0, kFirstColumn); - QModelIndex bottomRight = createIndex(index, kLastColumn); beginInsertRows(QModelIndex(), 0, index); endInsertRows(); - - Q_EMIT dataChanged(topLeft, bottomRight); } void MarkerModel::HandleMarkerAdded() { const int newIndex = static_cast(p->markerManager_->marker_count() - 1); - QModelIndex topLeft = createIndex(newIndex, kFirstColumn); - QModelIndex bottomRight = createIndex(newIndex, kLastColumn); beginInsertRows(QModelIndex(), newIndex, newIndex); endInsertRows(); - - Q_EMIT dataChanged(topLeft, bottomRight); } void MarkerModel::HandleMarkerChanged(size_t index) @@ -288,13 +280,9 @@ void MarkerModel::HandleMarkerChanged(size_t index) void MarkerModel::HandleMarkerRemoved(size_t index) { const int removedIndex = static_cast(index); - QModelIndex topLeft = createIndex(removedIndex, kFirstColumn); - QModelIndex bottomRight = createIndex(removedIndex, kLastColumn); beginRemoveRows(QModelIndex(), removedIndex, removedIndex); endRemoveRows(); - - Q_EMIT dataChanged(topLeft, bottomRight); } } // namespace model