From: Soeren Apel Date: Sat, 25 Jan 2020 22:51:39 +0000 (+0100) Subject: Fix build X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9a220973c4e4eaccdab85a5dc90d2ee893f8d247;p=pulseview.git Fix build --- diff --git a/pv/views/trace/cursorpair.cpp b/pv/views/trace/cursorpair.cpp index 81688337..fa8200be 100644 --- a/pv/views/trace/cursorpair.cpp +++ b/pv/views/trace/cursorpair.cpp @@ -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()); }); - 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()); }); - 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);