MCPcopy Create free account
hub / github.com/Gecode/gecode / mouseDoubleClickEvent

Method mouseDoubleClickEvent

gecode/gist/treecanvas.cpp:1244–1259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1242 }
1243
1244 void
1245 TreeCanvas::mouseDoubleClickEvent(QMouseEvent* event) {
1246 if (mutex.tryLock()) {
1247 if(event->button() == Qt::LeftButton) {
1248 VisualNode* n = eventNode(event);
1249 if(n == currentNode) {
1250 inspectCurrentNode();
1251 event->accept();
1252 mutex.unlock();
1253 return;
1254 }
1255 }
1256 mutex.unlock();
1257 }
1258 event->ignore();
1259 }
1260
1261 void
1262 TreeCanvas::contextMenuEvent(QContextMenuEvent* event) {

Callers

nothing calls this directly

Calls 1

ignoreMethod · 0.45

Tested by

no test coverage detected