Files
qt5-legatus-legacy/Lts/Plugins/AreaEffectSimulation/Gui/Explosion/aes_explosions_single_model.cpp
T
2026-08-13 18:33:10 +02:00

31 lines
696 B
C++
Executable File

/**
* @RDE_HEADER@
* AreaEffectManangement - Explosion Single Overview Dialog Model
* $Id$
* $HeadURL$
* $Author$
*
* Created by Mike Wille, SLSE, 2016-09-26
*/
#include "aes_explosions_single_model.h"
namespace AreaEffectSimulation
{
bool ExplosionsSingleModel::initModel(LtsSession::LtsSession *session)
{
if (!AesGuiBaseModel::initModel(session))
return false;
connect(m_aesDtc.get(), &Interface::Dtc::explosionSingleChanged,
this, &ExplosionsSingleModel::onDataChanged);
fillAvailableChargeIds(m_gearClass);
m_aesDtc->explosionSingles([this](const ExplosionSingle &item) { insertRow(item); });
return true;
}
} // namespace AreaEffectSimulation