X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdialogs%2Fsettings.cpp;h=068d99b3108ead8c35a5c2dce0e1884a096f6d9d;hp=214ac9cf26e862aefd4208a4da84d685709d2655;hb=051ba3b399abbd83fea8b7ef6f8876884ac0786c;hpb=e9c8e87cf09ad9761bea1193b25d01a87f8e0dd6 diff --git a/pv/dialogs/settings.cpp b/pv/dialogs/settings.cpp index 214ac9c..068d99b 100644 --- a/pv/dialogs/settings.cpp +++ b/pv/dialogs/settings.cpp @@ -133,6 +133,11 @@ QWidget *Settings::get_view_settings_form(QWidget *parent) const connect(sticky_scrolling_cb, SIGNAL(stateChanged(int)), this, SLOT(on_view_stickyScrolling_changed(int))); trace_view_layout->addRow(tr("Always keep &newest samples at the right edge during capture"), sticky_scrolling_cb); + QCheckBox *show_sampling_points_cb = new QCheckBox(); + show_sampling_points_cb->setChecked(settings.value(GlobalSettings::Key_View_ShowSamplingPoints).toBool()); + connect(show_sampling_points_cb, SIGNAL(stateChanged(int)), this, SLOT(on_view_showSamplingPoints_changed(int))); + trace_view_layout->addRow(tr("Show data &sampling points"), show_sampling_points_cb); + return form; } @@ -260,6 +265,11 @@ void Settings::on_view_stickyScrolling_changed(int state) settings.setValue(GlobalSettings::Key_View_StickyScrolling, state ? true : false); } +void Settings::on_view_showSamplingPoints_changed(int state) +{ + GlobalSettings settings; + settings.setValue(GlobalSettings::Key_View_ShowSamplingPoints, state ? true : false); +} } // namespace dialogs } // namespace pv