MCPcopy Create free account
hub / github.com/comaps/comaps / OnSwitchMwmsBordersSelectionMode

Method OnSwitchMwmsBordersSelectionMode

qt/mainwindow.cpp:593–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

591}
592
593void MainWindow::OnSwitchMwmsBordersSelectionMode()
594{
595 MwmsBordersSelection dlg(this);
596 auto const response = dlg.ShowModal();
597 if (response == SelectionMode::Cancelled)
598 {
599 m_pDrawWidget->DropSelectionIfMWMBordersMode();
600 return;
601 }
602
603 m_selection->setCurrent(SelectionMode::MWMBorders);
604 m_pDrawWidget->SetSelectionMode(response);
605}
606
607void MainWindow::OnClearSelection()
608{

Callers

nothing calls this directly

Calls 4

SetSelectionModeMethod · 0.80
ShowModalMethod · 0.45
setCurrentMethod · 0.45

Tested by

no test coverage detected