| 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 | { |
nothing calls this directly
no test coverage detected