MCPcopy Create free account
hub / github.com/MITK/MITK / NextFreeSyncGroupIndex

Method NextFreeSyncGroupIndex

Modules/QtWidgets/src/QmitkMxNMultiWidget.cpp:1678–1692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1676}
1677
1678QmitkMxNMultiWidget::GroupSyncIndexType QmitkMxNMultiWidget::NextFreeSyncGroupIndex() const
1679{
1680 // m_SynchronizedWidgetConnectors is a std::map with int keys, so iteration is
1681 // in ascending key order. Walk from 1 and return the first gap.
1682 GroupSyncIndexType candidate = 1;
1683 for (const auto& entry : m_SynchronizedWidgetConnectors)
1684 {
1685 if (entry.first != candidate)
1686 {
1687 break;
1688 }
1689 ++candidate;
1690 }
1691 return candidate;
1692}
1693
1694void QmitkMxNMultiWidget::OnCreateNewSyncGroupRequested(QmitkSynchronizedNodeSelectionWidget* synchronizedWidget)
1695{

Calls

no outgoing calls