MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / itemReleased

Method itemReleased

src/openms_gui/source/VISUAL/TOPPASScene.cpp:143–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141 }
142
143 void TOPPASScene::itemReleased()
144 {
145 TOPPASVertex* sender = qobject_cast<TOPPASVertex*>(QObject::sender());
146 if (!sender)
147 {
148 return;
149 }
150
151 // deselect all items except for the one under the cursor, but only if no multiple selection
152 if (selectedItems().size() <= 1)
153 {
154 unselectAll();
155 sender->setSelected(true);
156 }
157
158 snapToGrid();
159 }
160
161 void TOPPASScene::updateHoveringEdgePos(const QPointF& new_pos)
162 {

Callers

nothing calls this directly

Calls 2

setSelectedMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected