| 57 | } |
| 58 | |
| 59 | void MarkerView::fillMenu() |
| 60 | { |
| 61 | menu = new QMenu(this); |
| 62 | |
| 63 | setContextMenuPolicy(Qt::CustomContextMenu); |
| 64 | connect(this, &QWidget::customContextMenuRequested, this, &MarkerView::mainMenu); |
| 65 | |
| 66 | seekAct = menu->addAction(tr("Seek To"), this, &MarkerView::seekSlot); |
| 67 | scrollAct = menu->addAction(tr("Scroll To"), this, &MarkerView::scrollSlot); |
| 68 | removeAct = menu->addAction(tr("Remove"), this, &MarkerView::removeSlot); |
| 69 | } |
| 70 | |
| 71 | void MarkerView::resetMarkers() |
| 72 | { |