/** * @RDE_HEADER@ * AreaEffectManangement - N Contamination Overview Dialog Model * $Id$ * $HeadURL$ * $Author$ * * Created by Malte Diers, SLSE, 2017-02-21 */ #include "aes_danger_areas_model.h" #include #include namespace AreaEffectSimulation { DangerAreasModel::DangerAreasModel(QObject *parent) : AesGuiBaseModel(parent) {} bool DangerAreasModel::initModel(LtsSession::LtsSession *session) { if (!AesGuiBaseModel::initModel(session)) return false; connect(m_aesDtc.get(), &Interface::Dtc::dangerAreaChanged, this, &DangerAreasModel::onDataChanged); m_aesDtc->dangerAreas([this](const DangerArea &item) { insertRow(item); }); return true; } } // namespace AreaEffectSimulation