Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
+3
-3
@@ -53,15 +53,15 @@ NGL_ADD_LIBRARY2(WS PpmCommon SHARED ${participant_common_gui_SRCS} )
|
||||
NGL_TARGET_LINK_LIBRARIES(PpmCommon
|
||||
PRIVATE
|
||||
LtsSession
|
||||
Qt5::Widgets
|
||||
Qt6::Widgets
|
||||
NGLLogger
|
||||
AsbDataPluginInterface
|
||||
ExmDataPluginInterface
|
||||
advancedSymbologyGui
|
||||
LtsUtilsSettings
|
||||
PUBLIC
|
||||
Qt5::Core
|
||||
Qt5::Gui
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
nglwidgets
|
||||
svcPpmCommon
|
||||
LtsDataView
|
||||
|
||||
+3
-2
@@ -1,6 +1,7 @@
|
||||
|
||||
|
||||
#include "msdl_distype_editor.h"
|
||||
#include <utility>
|
||||
#include "ui_msdl_distype_editor.h"
|
||||
#include "msdl_types.h"
|
||||
|
||||
@@ -35,7 +36,7 @@ DistypeEditor::DistypeEditor(QWidget *parent,
|
||||
m_mapTypes = m_ppmDtc->types();
|
||||
std::set<ParticipantManagement::TypeClass> setTypeClasses;
|
||||
|
||||
for (const ParticipantManagement::Type &type : qAsConst(m_mapTypes))
|
||||
for (const ParticipantManagement::Type &type : std::as_const(m_mapTypes))
|
||||
{
|
||||
const ParticipantManagement::TypeClass typeClassId = type.typeClass();
|
||||
|
||||
@@ -108,7 +109,7 @@ void DistypeEditor::slotTypeClassChanged()
|
||||
|
||||
int currentTypeClass = mUi->m_ltsComboBox_typeClass->currentData().toInt();
|
||||
|
||||
for (const ParticipantManagement::Type &type : qAsConst(m_mapTypes))
|
||||
for (const ParticipantManagement::Type &type : std::as_const(m_mapTypes))
|
||||
{
|
||||
if (type.typeClass().underlying() != currentTypeClass)
|
||||
continue;
|
||||
|
||||
+4
-3
@@ -1,6 +1,7 @@
|
||||
|
||||
|
||||
#include "participant_dis_type_edit.h"
|
||||
#include <utility>
|
||||
#include "ui_participant_dis_type_edit.h"
|
||||
#include "participant_dis_helper.h"
|
||||
|
||||
@@ -100,7 +101,7 @@ void DISTypeEdit::switchType(int32_t typeId)
|
||||
|
||||
mUi->m_listWidget_distypes->clear();
|
||||
|
||||
for (int64_t disId : qAsConst(m_DisEntitiesByType[m_typeId]))
|
||||
for (int64_t disId : std::as_const(m_DisEntitiesByType[m_typeId]))
|
||||
mUi->m_listWidget_distypes->addItem(DIS::convertDISTypeInteger2DISString(disId));
|
||||
|
||||
|
||||
@@ -118,11 +119,11 @@ bool DISTypeEdit::apply()
|
||||
if(!hasChanges())
|
||||
return true;
|
||||
|
||||
for(int32_t typeId : qAsConst(m_setTouchedTypes))
|
||||
for(int32_t typeId : std::as_const(m_setTouchedTypes))
|
||||
{
|
||||
Type &touchedType = m_mapTypes[typeId];
|
||||
touchedType.disEntities().clear();
|
||||
for (int64_t disId : qAsConst(m_DisEntitiesByType[typeId]))
|
||||
for (int64_t disId : std::as_const(m_DisEntitiesByType[typeId]))
|
||||
touchedType.disEntities().push_back(disId);
|
||||
|
||||
m_requestHelper->addRequest([this, touchedType]()
|
||||
|
||||
+3
-2
@@ -1,6 +1,7 @@
|
||||
|
||||
|
||||
#include "participant_distype_editor.h"
|
||||
#include <utility>
|
||||
#include "ui_participant_distype_editor.h"
|
||||
|
||||
#include <LtsWidgets/lts_message_dialog.h>
|
||||
@@ -34,7 +35,7 @@ DistypeEditor::DistypeEditor(QWidget *parent,
|
||||
m_mapTypes = m_ppmDtc->types();
|
||||
std::set<ParticipantManagement::TypeClass> setTypeClasses;
|
||||
|
||||
for (const ParticipantManagement::Type &type : qAsConst(m_mapTypes))
|
||||
for (const ParticipantManagement::Type &type : std::as_const(m_mapTypes))
|
||||
{
|
||||
const ParticipantManagement::TypeClass typeClassId = type.typeClass();
|
||||
|
||||
@@ -107,7 +108,7 @@ void DistypeEditor::slotTypeClassChanged()
|
||||
|
||||
int currentTypeClass = mUi->m_ltsComboBox_typeClass->currentData().toInt();
|
||||
|
||||
for (const ParticipantManagement::Type &type : qAsConst(m_mapTypes))
|
||||
for (const ParticipantManagement::Type &type : std::as_const(m_mapTypes))
|
||||
{
|
||||
if (type.typeClass().underlying() != currentTypeClass)
|
||||
continue;
|
||||
|
||||
+4
-3
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "participant_edit_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>
|
||||
@@ -553,7 +554,7 @@ void ParticipantEditModel::processMissingSuperiorId()
|
||||
gatherParticipants(tmap, parentId2id);
|
||||
|
||||
|
||||
for (int id : qAsConst(m_missingSuperiorId))
|
||||
for (int id : std::as_const(m_missingSuperiorId))
|
||||
{
|
||||
if (!tmap.contains(id))
|
||||
continue;
|
||||
@@ -566,7 +567,7 @@ void ParticipantEditModel::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)
|
||||
@@ -1464,7 +1465,7 @@ void ParticipantTableFilterProxyModel::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_template_edit_model.h"
|
||||
#include <utility>
|
||||
#include <ParticipantManagement/ppm_translation.h>
|
||||
#include "participant_firing_unit_validator.h"
|
||||
#include <nglwidgets/ngltreeitem.h>
|
||||
@@ -379,7 +380,7 @@ bool ParticipantTemplateEditModel::onInsertTemplate(int rootId,
|
||||
|
||||
QVector<ParticipantManagement::TemplateParticipant> templateMap;
|
||||
m_dtc->templateParticipantsFromTemplateId(rootId, templateMap);
|
||||
for (const ParticipantManagement::TemplateParticipant &tmpl : qAsConst(templateMap))
|
||||
for (const ParticipantManagement::TemplateParticipant &tmpl : std::as_const(templateMap))
|
||||
{
|
||||
|
||||
if (!tmpl.templateId())
|
||||
|
||||
Reference in new issue
Block a user