MCPcopy Create free account
hub / github.com/XRay3D/GERBER_X3 / contextMenuEvent

Method contextMenuEvent

GGEasy/point.cpp:212–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210 QGraphicsItem::mouseDoubleClickEvent(event);
211}
212void Marker::contextMenuEvent(QGraphicsSceneContextMenuEvent* event)
213{
214 QMenu menu;
215 auto action = menu.addAction(QObject::tr("Fixed"), [this](bool fl) {
216 setFlag(QGraphicsItem::ItemIsMovable, !fl);
217 });
218 action->setCheckable(true);
219 action->setChecked(!(flags() & QGraphicsItem::ItemIsMovable));
220 menu.addSeparator();
221 action = menu.addAction(QIcon::fromTheme("configure-shortcuts"), QObject::tr("&Settings"), [] {
222 SettingsDialog(nullptr, SettingsDialog::Utils).exec();
223 });
224 menu.exec(event->screenPos());
225}
226
227////////////////////////////////////////////////
228/// \brief Pin::Pin

Callers

nothing calls this directly

Calls 15

setCheckedMethod · 0.80
pinUsedMethod · 0.80
setFileNameMethod · 0.80
nameEncMethod · 0.80
setPinUsedMethod · 0.80
SettingsDialogClass · 0.70
toolMethod · 0.45
posMethod · 0.45
containsMethod · 0.45
push_backMethod · 0.45
toDoubleMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected