included spacebar as a shortcut to start and stop acq

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@118 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
l_maliakal_d 2012-11-30 09:51:52 +00:00
parent 0b8f6cc925
commit 382554afe9
2 changed files with 4 additions and 0 deletions

View File

@ -161,6 +161,9 @@
<iconset resource="../include/icons.qrc"> <iconset resource="../include/icons.qrc">
<normaloff>:/icons/images/start.png</normaloff>:/icons/images/start.png</iconset> <normaloff>:/icons/images/start.png</normaloff>:/icons/images/start.png</iconset>
</property> </property>
<property name="shortcut">
<string>Space</string>
</property>
<property name="checkable"> <property name="checkable">
<bool>true</bool> <bool>true</bool>
</property> </property>

View File

@ -261,6 +261,7 @@ void qTabMeasurement::Enable(bool enable){
frameNotTimeResolved->setEnabled(enable); frameNotTimeResolved->setEnabled(enable);
//Enable this always //Enable this always
if(!enable) btnStartStop->setEnabled(true); if(!enable) btnStartStop->setEnabled(true);
btnStartStop->setShortcut(QApplication::translate("TabMeasurementObject", "Space", 0, QApplication::UnicodeUTF8));
} }