Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
+6
-5
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "participant_edit.h"
|
||||
#include <utility>
|
||||
#include "ui_participant_edit.h"
|
||||
|
||||
#include <Common/participant_beautify_view.h>
|
||||
@@ -465,7 +466,7 @@ void ParticipantEdit::onSelectionChangedInTree(const QItemSelection &selected, c
|
||||
{
|
||||
m_ui->tableViewEdit->blockSignals(true);
|
||||
QModelIndexList indexes = deselected.indexes();
|
||||
for (const QModelIndex &sourceIndex : qAsConst(indexes))
|
||||
for (const QModelIndex &sourceIndex : std::as_const(indexes))
|
||||
{
|
||||
QModelIndex proxyIndex = m_proxyTable->mapFromSource(sourceIndex);
|
||||
if (m_ui->tableViewEdit->selectionModel()->selectedIndexes().contains(proxyIndex))
|
||||
@@ -473,7 +474,7 @@ void ParticipantEdit::onSelectionChangedInTree(const QItemSelection &selected, c
|
||||
}
|
||||
|
||||
indexes = selected.indexes();
|
||||
for (const QModelIndex &sourceIndex : qAsConst(indexes))
|
||||
for (const QModelIndex &sourceIndex : std::as_const(indexes))
|
||||
{
|
||||
QModelIndex proxyIndex = m_proxyTable->mapFromSource(sourceIndex);
|
||||
if (!m_ui->tableViewEdit->selectionModel()->selectedIndexes().contains(proxyIndex))
|
||||
@@ -486,7 +487,7 @@ void ParticipantEdit::onSelectionChangedInTable(const QItemSelection &selected,
|
||||
{
|
||||
m_ui->treeViewEdit->blockSignals(true);
|
||||
QModelIndexList indexes = deselected.indexes();
|
||||
for (const QModelIndex &sourceIndex : qAsConst(indexes))
|
||||
for (const QModelIndex &sourceIndex : std::as_const(indexes))
|
||||
{
|
||||
QModelIndex proxyIndex = m_proxyTree->mapFromSource(sourceIndex);
|
||||
if (m_ui->treeViewEdit->selectionModel()->selectedIndexes().contains(proxyIndex))
|
||||
@@ -494,7 +495,7 @@ void ParticipantEdit::onSelectionChangedInTable(const QItemSelection &selected,
|
||||
}
|
||||
|
||||
indexes = selected.indexes();
|
||||
for (const QModelIndex &sourceIndex : qAsConst(indexes))
|
||||
for (const QModelIndex &sourceIndex : std::as_const(indexes))
|
||||
{
|
||||
QModelIndex proxyIndex = m_proxyTree->mapFromSource(sourceIndex);
|
||||
if (!m_ui->treeViewEdit->selectionModel()->selectedIndexes().contains(proxyIndex))
|
||||
@@ -528,7 +529,7 @@ void ParticipantEdit::onFilterChanged(LtsDataView::SearchModel *from, LtsDataVie
|
||||
}
|
||||
else
|
||||
{
|
||||
for (const LtsWidgets::ComboboxFilterData &data : qAsConst(comboFilterContent.data))
|
||||
for (const LtsWidgets::ComboboxFilterData &data : std::as_const(comboFilterContent.data))
|
||||
if (data.data == comboBoxData)
|
||||
{
|
||||
to->setData(toIndex, data.text, Qt::DisplayRole);
|
||||
|
||||
+2
-1
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "participant_orga_model.h"
|
||||
#include <utility>
|
||||
#include <Plugins/ParticipantManagement/ppm_mime_datas.h>
|
||||
#include <Common/participant_edit_model.h>
|
||||
#include <ParticipantManagement/ppm_translation.h>
|
||||
@@ -241,7 +242,7 @@ bool ParticipantOrgaModel::dropMimeData(const QMimeData *data, Qt::DropAction ac
|
||||
QHash<int, QSet<int>> parentId2id;
|
||||
parentId2id.reserve(movedParticipants.size());
|
||||
|
||||
for (const Participant &part : qAsConst(movedParticipants))
|
||||
for (const Participant &part : std::as_const(movedParticipants))
|
||||
{
|
||||
if (part.isDeleted())
|
||||
continue;
|
||||
|
||||
+2
-1
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "participant_pool_model.h"
|
||||
#include <utility>
|
||||
#include <Plugins/ParticipantManagement/ppm_mime_datas.h>
|
||||
#include <ParticipantManagement/ppm_translation.h>
|
||||
#include <LtsSession/lts_session_data_dds.h>
|
||||
@@ -224,7 +225,7 @@ bool ParticipantPoolModel::addNewTemplateToPool(int id, const QString &designato
|
||||
|
||||
QVector<ParticipantManagement::ParticipantData> newPool;
|
||||
newPool.reserve(templateDatas.size());
|
||||
for (const TemplateParticipant &participant : qAsConst(templateDatas))
|
||||
for (const TemplateParticipant &participant : std::as_const(templateDatas))
|
||||
{
|
||||
ParticipantData newData;
|
||||
convertFromParticipantTemplateToParticipantData(participant, newData);
|
||||
|
||||
+4
-3
@@ -3,6 +3,7 @@
|
||||
|
||||
|
||||
#include "tactical_organisation.h"
|
||||
#include <utility>
|
||||
#include "ui_tactical_organisation.h"
|
||||
#include <Common/participant_beautify_view.h>
|
||||
#include <Common/participant_edit_item.h>
|
||||
@@ -117,7 +118,7 @@ bool TacticalOrganisation::apply()
|
||||
{
|
||||
ModifyParticipantDataRequest req;
|
||||
std::vector<ParticipantData> &dataToSend = req.data();
|
||||
for (const ParticipantEditModel *model : qAsConst(m_participantModels))
|
||||
for (const ParticipantEditModel *model : std::as_const(m_participantModels))
|
||||
{
|
||||
const auto c = model->participantData();
|
||||
dataToSend.insert(dataToSend.end(), c.begin(), c.end());
|
||||
@@ -137,7 +138,7 @@ void TacticalOrganisation::onModifyParticipantDataReply(const Core::FunctionRepl
|
||||
{
|
||||
if (!replyObject.error())
|
||||
{
|
||||
for (ParticipantEditModel *model : qAsConst(m_participantModels))
|
||||
for (ParticipantEditModel *model : std::as_const(m_participantModels))
|
||||
model->dataCommitted();
|
||||
}
|
||||
|
||||
@@ -206,7 +207,7 @@ void TacticalOrganisation::onParticipantSelected(int participantId)
|
||||
QModelIndex oldIdx = oldPem->indexFromParticipantId(participantId);
|
||||
if (!oldIdx.isValid())
|
||||
{
|
||||
for (ParticipantEditModel *model : qAsConst(m_participantModels))
|
||||
for (ParticipantEditModel *model : std::as_const(m_participantModels))
|
||||
{
|
||||
oldPem = model;
|
||||
oldIdx = oldPem->indexFromParticipantId(participantId);
|
||||
|
||||
Reference in new issue
Block a user