]> sigrok.org Git - pulseview.git/commitdiff
SamplingBar: Add Space as a shortcut to Run/Stop.
authorPeter Zotov <redacted>
Thu, 13 Nov 2014 14:16:54 +0000 (17:16 +0300)
committerUwe Hermann <redacted>
Thu, 13 Nov 2014 19:12:33 +0000 (20:12 +0100)
pv/toolbars/samplingbar.cpp

index 3d4e723f7e438510d065fc008486bcaf2b819609..21421bca34f16b235b644ca3096996f2aa9e0a2d 100644 (file)
@@ -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()