From: Peter Zotov Date: Thu, 13 Nov 2014 14:16:54 +0000 (+0300) Subject: SamplingBar: Add Space as a shortcut to Run/Stop. X-Git-Tag: pulseview-0.3.0~504 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=c042b5d2b18fca9fe79b9a33b730b890387bbfc7;p=pulseview.git SamplingBar: Add Space as a shortcut to Run/Stop. --- diff --git a/pv/toolbars/samplingbar.cpp b/pv/toolbars/samplingbar.cpp index 3d4e723f..21421bca 100644 --- a/pv/toolbars/samplingbar.cpp +++ b/pv/toolbars/samplingbar.cpp @@ -157,6 +157,7 @@ void SamplingBar::set_capture_state(pv::SigSession::capture_state state) _run_stop_button.setIcon(*icons[state]); _run_stop_button.setText((state == pv::SigSession::Stopped) ? tr("Run") : tr("Stop")); + _run_stop_button.setShortcut(QKeySequence(Qt::Key_Space)); } void SamplingBar::update_sample_rate_selector()