src/documentmanager.cpp

changeset 195
6e79c1cb83e6
parent 194
be056e87c8ca
child 200
ca23936b455b
equal deleted inserted replaced
194:be056e87c8ca 195:6e79c1cb83e6
377 } 377 }
378 } 378 }
379 379
380 void DocumentManager::modelModified() 380 void DocumentManager::modelModified()
381 { 381 {
382 Model* model = qobject_cast<Model*>(this->sender()); 382 Model* const model = qobject_cast<Model*>(this->sender());
383 const std::optional<ModelId> modelId = this->findIdForModel(model); 383 const std::optional<ModelId> modelId = this->findIdForModel(model);
384 if (modelId.has_value()) { 384 if (modelId.has_value()) {
385 this->polygonCaches[*modelId].needRecache = true; 385 this->polygonCaches[*modelId].needRecache = true;
386 } 386 }
387 } 387 }

mercurial