Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
+4
-3
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "ism_plan_tln_dialog.h"
|
||||
#include <utility>
|
||||
#include "ui_ism_plan_tln_dialog.h"
|
||||
#include "ism_plan_dialog.h"
|
||||
#include "ism_plan_tln_delegate.h"
|
||||
@@ -180,10 +181,10 @@ void PlanTimeLineDialog::onRemove()
|
||||
|
||||
InstrumentationAssetModifyRequest req;
|
||||
InstrumentationAsset asset;
|
||||
for (const auto &element : qAsConst(item.elements()))
|
||||
for (const auto &element : std::as_const(item.elements()))
|
||||
{
|
||||
QMap<qint32, MountingPointAsset> mntPntAssets = m_dtc->mountingPointAssets();
|
||||
for (const auto &mntPntAsset : qAsConst(mntPntAssets))
|
||||
for (const auto &mntPntAsset : std::as_const(mntPntAssets))
|
||||
{
|
||||
if (mntPntAsset.structureElementId() == element.structureElementId())
|
||||
{
|
||||
@@ -225,7 +226,7 @@ void PlanTimeLineDialog::onApply()
|
||||
return;
|
||||
}
|
||||
QVector<int> itemIds = m_ui->timeline->timelineModel()->itemIds();
|
||||
for (auto itemId : qAsConst(itemIds))
|
||||
for (auto itemId : std::as_const(itemIds))
|
||||
{
|
||||
int seId = m_model->getScheduleIdOfItem(itemId);
|
||||
if (seId == -1)
|
||||
|
||||
+3
-2
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "ism_plan_tln_model.h"
|
||||
#include <utility>
|
||||
#include <LtsWidgets/lts_message_dialog.h>
|
||||
#include <QDateTime>
|
||||
|
||||
@@ -74,7 +75,7 @@ bool PlanTimelineModel::setModel()
|
||||
m_endTime = QDateTime::currentMSecsSinceEpoch() + (LtsTimeline::ZoomFactor::OneDay);
|
||||
m_duration = m_endTime - m_startTime;
|
||||
|
||||
for (auto scheduleId : qAsConst(scheduleIds))
|
||||
for (auto scheduleId : std::as_const(scheduleIds))
|
||||
{
|
||||
MainSchedule mse = m_dtc->mainSchedule(scheduleId);
|
||||
|
||||
@@ -144,7 +145,7 @@ QVector<PlanTimelineModel::ItemIntersection> PlanTimelineModel::getIntersectedPl
|
||||
int32_t PlanTimelineModel::getScheduleIdOfItem(int itemId)
|
||||
{
|
||||
int32_t scheduleId = -1;
|
||||
for (auto item : qAsConst(m_itemIntersection))
|
||||
for (auto item : std::as_const(m_itemIntersection))
|
||||
{
|
||||
if (item.itemId == itemId)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user