]> sigrok.org Git - pulseview.git/commitdiff
Fix build
authorSoeren Apel <redacted>
Sat, 25 Jan 2020 22:51:39 +0000 (23:51 +0100)
committerSoeren Apel <redacted>
Sat, 25 Jan 2020 22:51:39 +0000 (23:51 +0100)
pv/views/trace/cursorpair.cpp

index 81688337f94e238c8eaaf0310a54d5ced35a1ee4..fa8200bea844150230c80d78fc15625742311d14 100644 (file)
@@ -125,7 +125,7 @@ QMenu *CursorPair::create_header_context_menu(QWidget *parent)
 {
        QMenu *menu = new QMenu(parent);
 
-       QAction *displayIntervalAction = new QAction(tr("Display interval"));
+       QAction *displayIntervalAction = new QAction(tr("Display interval"), this);
        displayIntervalAction->setCheckable(true);
        displayIntervalAction->setChecked(show_interval_);
        menu->addAction(displayIntervalAction);
@@ -136,7 +136,7 @@ QMenu *CursorPair::create_header_context_menu(QWidget *parent)
                        !settings.value(GlobalSettings::Key_View_CursorShowInterval).value<bool>());
                });
 
-       QAction *displayFrequencyAction = new QAction(tr("Display frequency"));
+       QAction *displayFrequencyAction = new QAction(tr("Display frequency"), this);
        displayFrequencyAction->setCheckable(true);
        displayFrequencyAction->setChecked(show_frequency_);
        menu->addAction(displayFrequencyAction);
@@ -147,7 +147,7 @@ QMenu *CursorPair::create_header_context_menu(QWidget *parent)
                        !settings.value(GlobalSettings::Key_View_CursorShowFrequency).value<bool>());
                });
 
-       QAction *displaySamplesAction = new QAction(tr("Display samples"));
+       QAction *displaySamplesAction = new QAction(tr("Display samples"), this);
        displaySamplesAction->setCheckable(true);
        displaySamplesAction->setChecked(show_samples_);
        menu->addAction(displaySamplesAction);