31 lines
694 B
C++
Executable File
31 lines
694 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* AreaEffectManangement - BcContamination Overview Dialog Model
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*
|
|
* Created by Mike Wille, SLSE, 2016-09-26
|
|
*/
|
|
|
|
#include "aes_bccontaminations_model.h"
|
|
|
|
namespace AreaEffectSimulation
|
|
{
|
|
|
|
bool BCContaminationsModel::initModel(LtsSession::LtsSession *session)
|
|
{
|
|
if (!AesGuiBaseModel::initModel(session))
|
|
return false;
|
|
|
|
connect(m_aesDtc.get(), &Interface::Dtc::bCContaminationChanged,
|
|
this, &BCContaminationsModel::onDataChanged);
|
|
|
|
fillAvailableChargeIds(m_gearClass);
|
|
|
|
m_aesDtc->bCContaminations([this](const BCContamination &item) { insertRow(item); });
|
|
return true;
|
|
}
|
|
|
|
} // namespace AreaEffectSimulation
|