Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
+1
-1
@@ -88,7 +88,7 @@ NGL_TARGET_LINK_LIBRARIES(PpmParticipantInfoGuiPlugin
|
||||
PdmDataPluginInterface
|
||||
svcTgtClient
|
||||
PdmGuiPluginInterface
|
||||
Qt5::Widgets
|
||||
Qt6::Widgets
|
||||
LtsWidgets
|
||||
LtsSession
|
||||
LtsSessionData
|
||||
|
||||
+2
-1
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "participant_bite_dialog.h"
|
||||
#include <utility>
|
||||
#include "ui_participant_bite_dialog.h"
|
||||
#include <ngltools/ngltools_dtg.h>
|
||||
|
||||
@@ -114,7 +115,7 @@ bool ParticipantBiteDialog::init(const std::shared_ptr<Interface::Dtc> &dtc,
|
||||
int ParticipantBiteDialog::checkArguments(bool available, bool statusOk, qint64 bitValue, int i)
|
||||
{
|
||||
QString name;
|
||||
for (const ProjectDataManagement::CanComponentString &ccs : qAsConst(m_ccsMap))
|
||||
for (const ProjectDataManagement::CanComponentString &ccs : std::as_const(m_ccsMap))
|
||||
{
|
||||
if (ccs.bitMask() == bitValue)
|
||||
{
|
||||
|
||||
+4
-3
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "participant_config_model.h"
|
||||
#include <utility>
|
||||
#include <ParticipantManagement/ppm_translation.h>
|
||||
#include <Plugins/AdvancedSymbology/asb_data_plugin_interface.h>
|
||||
#include <Symbology/symbol_data_to_render_role.h>
|
||||
@@ -515,7 +516,7 @@ void ParticipantConfigModel::processMissingSuperiorId()
|
||||
gatherParticipants(tmap, parentId2id);
|
||||
|
||||
|
||||
for (int id : qAsConst(m_missingSuperiorId))
|
||||
for (int id : std::as_const(m_missingSuperiorId))
|
||||
{
|
||||
if (!tmap.contains(id))
|
||||
continue;
|
||||
@@ -528,7 +529,7 @@ void ParticipantConfigModel::processMissingSuperiorId()
|
||||
continue;
|
||||
|
||||
const QSet<int> &childIds = parentId2id.value(id);
|
||||
for (int childId : qAsConst(childIds))
|
||||
for (int childId : std::as_const(childIds))
|
||||
{
|
||||
const ParticipantManagement::Participant &p = m_dtc->participant(childId);
|
||||
if (p.id() != childId)
|
||||
@@ -1448,7 +1449,7 @@ void ParticipantTableFilterProxyConfigModel::onFilter()
|
||||
QList<int> rows = m_mapToSourceFiltered.keys();
|
||||
std::sort(rows.begin(), rows.end());
|
||||
int count = 0;
|
||||
for (const auto &row : qAsConst(rows))
|
||||
for (const auto &row : std::as_const(rows))
|
||||
{
|
||||
if (row == count)
|
||||
{
|
||||
|
||||
+2
-1
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "participant_info_table_model.h"
|
||||
#include <utility>
|
||||
|
||||
#include <LtsCoordTrans/lts_coord_trans.h>
|
||||
#include <LtsUtilsCore/outdated_position.h>
|
||||
@@ -185,7 +186,7 @@ void ParticipantInfoTableModel::updateDataView(const QSet<int> &participantIds)
|
||||
|
||||
QSet<int> participantIdsToAdd(participantIds);
|
||||
|
||||
for (const auto &p : qAsConst(m_vecData))
|
||||
for (const auto &p : std::as_const(m_vecData))
|
||||
participantIdsToAdd.remove(p.id());
|
||||
|
||||
if (participantIdsToAdd.isEmpty())
|
||||
|
||||
+7
-6
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "participant_set_injury_dialog.h"
|
||||
#include <utility>
|
||||
#include "ui_participant_set_injury_dialog.h"
|
||||
|
||||
#include <LtsSession/lts_session_data.h>
|
||||
@@ -125,7 +126,7 @@ void ParticipantSetInjuryDialog::createButtonGroups()
|
||||
QSpacerItem *item ;
|
||||
|
||||
m_bgInjury = new QButtonGroup(this);
|
||||
for (const auto &injuryKind : qAsConst(m_injuryKind))
|
||||
for (const auto &injuryKind : std::as_const(m_injuryKind))
|
||||
{
|
||||
rb = new QRadioButton(ProjectDataManagement::trSanitationInjuryKindName(injuryKind.name()), this);
|
||||
m_bgInjury->addButton(rb, injuryKind.id());
|
||||
@@ -137,7 +138,7 @@ void ParticipantSetInjuryDialog::createButtonGroups()
|
||||
|
||||
|
||||
m_bgBodypart = new QButtonGroup(this);
|
||||
for (const auto &injuryplace1 : qAsConst(m_injuryPlace1))
|
||||
for (const auto &injuryplace1 : std::as_const(m_injuryPlace1))
|
||||
{
|
||||
rb = new QRadioButton(ProjectDataManagement::trSanitationInjuryPlace1Name(injuryplace1.name()), this);
|
||||
m_bgBodypart->addButton(rb, injuryplace1.id());
|
||||
@@ -149,7 +150,7 @@ void ParticipantSetInjuryDialog::createButtonGroups()
|
||||
|
||||
|
||||
m_bgSide = new QButtonGroup(this);
|
||||
for (const auto &injuryplace2 : qAsConst(m_injuryPlace2))
|
||||
for (const auto &injuryplace2 : std::as_const(m_injuryPlace2))
|
||||
{
|
||||
rb = new QRadioButton(ProjectDataManagement::trSanitationInjuryPlace2Name(injuryplace2.name()), this);
|
||||
m_bgSide->addButton(rb, injuryplace2.id());
|
||||
@@ -204,7 +205,7 @@ void ParticipantSetInjuryDialog::checkRadioStatesBody()
|
||||
|
||||
resetRadioStates();
|
||||
bool firstAvailable = true;
|
||||
for (const ProjectDataManagement::SanitationInjury& injury : qAsConst(m_injuries))
|
||||
for (const ProjectDataManagement::SanitationInjury& injury : std::as_const(m_injuries))
|
||||
{
|
||||
if (injury.kind() == m_bgInjury->checkedId())
|
||||
{
|
||||
@@ -228,7 +229,7 @@ void ParticipantSetInjuryDialog::checkRadioStatesSides()
|
||||
|
||||
resetRadioStates(true);
|
||||
|
||||
for (const ProjectDataManagement::SanitationInjury& injury : qAsConst(m_injuries))
|
||||
for (const ProjectDataManagement::SanitationInjury& injury : std::as_const(m_injuries))
|
||||
{
|
||||
if (injury.kind() == m_bgInjury->checkedId() && injury.place1() == m_bgBodypart->checkedId())
|
||||
m_bgSide->button(injury.place2())->setEnabled(true);
|
||||
@@ -259,7 +260,7 @@ void ParticipantSetInjuryDialog::checkState()
|
||||
const QString &mediumDamage = tr("Middle");
|
||||
const QString &heavyDamage = tr("Serious");
|
||||
|
||||
for (const ProjectDataManagement::SanitationInjury& injury : qAsConst(m_injuries))
|
||||
for (const ProjectDataManagement::SanitationInjury& injury : std::as_const(m_injuries))
|
||||
{
|
||||
if (injury.kind() == m_bgInjury->checkedId() && injury.place1() == m_bgBodypart->checkedId() && injury.place2() == m_bgSide->checkedId())
|
||||
{
|
||||
|
||||
+2
-1
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "participant_set_sanitation_dialog.h"
|
||||
#include <utility>
|
||||
#include "ui_participant_set_sanitation_dialog.h"
|
||||
#include <ProjectDataManagement/pdm_translation.h>
|
||||
#include <ParticipantManagement/ppm_translation.h>
|
||||
@@ -151,7 +152,7 @@ void ParticipantSetSanitationDialog::fillCb()
|
||||
qint64 ParticipantSetSanitationDialog::getProcedures()
|
||||
{
|
||||
qint64 ret = 0;
|
||||
for (const auto &cbx : qAsConst(m_procedures))
|
||||
for (const auto &cbx : std::as_const(m_procedures))
|
||||
{
|
||||
if (cbx->isChecked())
|
||||
ret += cbx->property("dataCode").toULongLong();
|
||||
|
||||
+3
-2
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "participant_shootback_area_model.h"
|
||||
#include <utility>
|
||||
|
||||
#include <LtsUtilsCore/variant_operators.h>
|
||||
#include <LtsCoordTrans/lts_coord_trans.h>
|
||||
@@ -35,7 +36,7 @@ bool AreaModel::initModel(const TargetInformation &targetInformation)
|
||||
|
||||
INFO_LOG(m_logger) << "initModel - #AreaModel: " << targetInformation.shootbackAreas().size();
|
||||
|
||||
for (auto singleArea : qAsConst(targetInformation.shootbackAreas()))
|
||||
for (auto singleArea : std::as_const(targetInformation.shootbackAreas()))
|
||||
onShootbackAreaChanged(singleArea, DataModification::eAdded);
|
||||
|
||||
|
||||
@@ -125,7 +126,7 @@ void AreaModel::onShootbackAreaChanged(const ShootbackArea &data,
|
||||
void AreaModel::updateColumnFilter()
|
||||
{
|
||||
m_usedNames.clear();
|
||||
for (const ShootbackArea &item : qAsConst(m_vecData))
|
||||
for (const ShootbackArea &item : std::as_const(m_vecData))
|
||||
m_usedNames.insert(QString::fromStdString(item.identifier()));
|
||||
}
|
||||
|
||||
|
||||
+4
-3
@@ -1,6 +1,7 @@
|
||||
|
||||
|
||||
#include "participant_target_config_dialog.h"
|
||||
#include <utility>
|
||||
#include "ui_participant_target_config_dialog.h"
|
||||
#include <LtsSession/lts_session_data.h>
|
||||
#include <QTreeView>
|
||||
@@ -307,7 +308,7 @@ void ParticipantTargetConfigurationDialog::fillStatusComboBox()
|
||||
};
|
||||
|
||||
m_ui->cb_status->clear();
|
||||
for (auto item : qAsConst(cont))
|
||||
for (auto item : std::as_const(cont))
|
||||
{
|
||||
ProjectDataManagement::VulnerabilityState st = item;
|
||||
QString str = ProjectDataManagement::toString(st, ProjectDataManagement::VulnerabilityClass_def::VehicleDamages);
|
||||
@@ -327,7 +328,7 @@ void ParticipantTargetConfigurationDialog::fillPrewarningEffectComboBox()
|
||||
};
|
||||
|
||||
m_ui->cb_prewarningEffect->clear();
|
||||
for (auto item : qAsConst(cont))
|
||||
for (auto item : std::as_const(cont))
|
||||
{
|
||||
ProjectDataManagement::VulnerabilityState st = item;
|
||||
QString str = ProjectDataManagement::toString(st, ProjectDataManagement::VulnerabilityClass_def::VehicleDamages);
|
||||
@@ -345,7 +346,7 @@ void ParticipantTargetConfigurationDialog::fillTakeDownEffectComboBox()
|
||||
};
|
||||
|
||||
m_ui->cb_takeDownEffect->clear();
|
||||
for (auto item : qAsConst(cont))
|
||||
for (auto item : std::as_const(cont))
|
||||
{
|
||||
ProjectDataManagement::VulnerabilityState st = item;
|
||||
QString str = ProjectDataManagement::toString(st, ProjectDataManagement::VulnerabilityClass_def::VehicleDamages);
|
||||
|
||||
Reference in new issue
Block a user