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

Method DropSelectionIfMWMBordersMode

qt/draw_widget.hpp:113–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 void SetSelectionMode(std::optional<SelectionMode> mode) { m_selectionMode = mode; }
112
113 void DropSelectionIfMWMBordersMode()
114 {
115 static_assert(SelectionMode::MWMBorders < SelectionMode::Cancelled, "");
116 if (m_selectionMode && *m_selectionMode > SelectionMode::MWMBorders && *m_selectionMode < SelectionMode::Cancelled)
117 m_selectionMode = {};
118 }
119
120private:
121 void ProcessSelectionMode();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected