Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+32
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* AreaEffectManangement - N Contamination Overview Dialog Model
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
*
|
||||
* Created by Malte Diers, SLSE, 2017-02-21
|
||||
*/
|
||||
|
||||
#include "aes_ncontaminations_model.h"
|
||||
#include <Plugins/ProjectDataManagement/pdm_data_plugin_interface.h>
|
||||
#include <QLocale>
|
||||
|
||||
namespace AreaEffectSimulation
|
||||
{
|
||||
|
||||
NContaminationsModel::NContaminationsModel(QObject *parent)
|
||||
: AesGuiBaseModel<NContamination>(parent)
|
||||
{}
|
||||
|
||||
bool NContaminationsModel::initModel(LtsSession::LtsSession *session)
|
||||
{
|
||||
if (!AesGuiBaseModel::initModel(session))
|
||||
return false;
|
||||
|
||||
connect(m_aesDtc.get(), &Interface::Dtc::nContaminationChanged,
|
||||
this, &NContaminationsModel::onDataChanged);
|
||||
m_aesDtc->nContaminations([this](const NContamination &item) { insertRow(item);});
|
||||
return true;
|
||||
}
|
||||
} // namespace AreaEffectSimulation
|
||||
Reference in new issue
Block a user