| 210 | QGraphicsItem::mouseDoubleClickEvent(event); |
| 211 | } |
| 212 | void 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 |
nothing calls this directly
no test coverage detected