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

Method contextMenuEvent

gecode/gist/treecanvas.cpp:1261–1275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1259 }
1260
1261 void
1262 TreeCanvas::contextMenuEvent(QContextMenuEvent* event) {
1263 if (mutex.tryLock()) {
1264 VisualNode* n = eventNode(event);
1265 if (n != nullptr) {
1266 setCurrentNode(n);
1267 emit contextMenu(event);
1268 event->accept();
1269 mutex.unlock();
1270 return;
1271 }
1272 mutex.unlock();
1273 }
1274 event->ignore();
1275 }
1276
1277 void
1278 TreeCanvas::resizeEvent(QResizeEvent* e) {

Callers

nothing calls this directly

Calls 1

ignoreMethod · 0.45

Tested by

no test coverage detected