Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
+7
-6
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "participant_selection.h"
|
||||
#include <utility>
|
||||
|
||||
#include "ui_participant_selection.h"
|
||||
|
||||
@@ -224,7 +225,7 @@ void ParticipantSelection::accept()
|
||||
|
||||
QVector<int> participantIds;
|
||||
participantIds.reserve(indexList.size());
|
||||
for (const auto &index : qAsConst(indexList))
|
||||
for (const auto &index : std::as_const(indexList))
|
||||
{
|
||||
QModelIndex sourceIndex = m_proxyTable->mapToSource(index);
|
||||
if (index.column() != 0)
|
||||
@@ -320,7 +321,7 @@ void ParticipantSelection::onSelectionChangedInTree(const QItemSelection &select
|
||||
{
|
||||
m_ui->tableViewSelection->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->tableViewSelection->selectionModel()->selectedIndexes().contains(proxyIndex))
|
||||
@@ -328,7 +329,7 @@ void ParticipantSelection::onSelectionChangedInTree(const QItemSelection &select
|
||||
}
|
||||
|
||||
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->tableViewSelection->selectionModel()->selectedIndexes().contains(proxyIndex))
|
||||
@@ -342,7 +343,7 @@ void ParticipantSelection::onSelectionChangedInTable(const QItemSelection &selec
|
||||
{
|
||||
m_ui->treeViewSelection->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->treeViewSelection->selectionModel()->selectedIndexes().contains(proxyIndex))
|
||||
@@ -350,7 +351,7 @@ void ParticipantSelection::onSelectionChangedInTable(const QItemSelection &selec
|
||||
}
|
||||
|
||||
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->treeViewSelection->selectionModel()->selectedIndexes().contains(proxyIndex))
|
||||
@@ -386,7 +387,7 @@ void ParticipantSelection::onFilterChanged(LtsDataView::SearchModel *from, LtsDa
|
||||
}
|
||||
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);
|
||||
|
||||
+4
-3
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "participant_selection_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>
|
||||
@@ -413,7 +414,7 @@ void ParticipantSelectionModel::processMissingSuperiorId()
|
||||
gatherParticipants(tmap, parentId2id);
|
||||
|
||||
|
||||
for (int id : qAsConst(m_missingSuperiorId))
|
||||
for (int id : std::as_const(m_missingSuperiorId))
|
||||
{
|
||||
if (!tmap.contains(id))
|
||||
continue;
|
||||
@@ -426,7 +427,7 @@ void ParticipantSelectionModel::processMissingSuperiorId()
|
||||
continue;
|
||||
|
||||
const QSet<int> &childIds = parentId2id.value(id);
|
||||
for (int childId : qAsConst(childIds))
|
||||
for (int childId : std::as_const(childIds))
|
||||
{
|
||||
const ParticipantManagement::Participant &pChild = m_dtc->participant(childId);
|
||||
if (pChild.id() != childId)
|
||||
@@ -1291,7 +1292,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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user