summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2013-12-08 14:18:28 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-08 16:18:00 +0100
commita145c2e61a1be0332aff3fd59331f51f36a35ebc (patch)
tree880b1835f38f0443556074092f5d12bc7d252f87 /qt-ui
parent8c6517374630b12ae53899066bea2d9292f52bb3 (diff)
downloadsubsurface-a145c2e61a1be0332aff3fd59331f51f36a35ebc.tar.gz
Update the diffrent units when switching system
When switching between metric and imperial, we should also show that the different units are switching too. This signals the greyed out radio buttons to switch to the right system. Fixes #347 Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/preferences.ui60
1 files changed, 60 insertions, 0 deletions
diff --git a/qt-ui/preferences.ui b/qt-ui/preferences.ui
index 345d2eca7..283fbbb39 100644
--- a/qt-ui/preferences.ui
+++ b/qt-ui/preferences.ui
@@ -1176,6 +1176,66 @@
</hint>
</hints>
</connection>
+ <connection>
+ <sender>imperial</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>feet</receiver>
+ <slot>setChecked(bool)</slot>
+ </connection>
+ <connection>
+ <sender>metric</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>meter</receiver>
+ <slot>setChecked(bool)</slot>
+ </connection>
+ <connection>
+ <sender>imperial</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>psi</receiver>
+ <slot>setChecked(bool)</slot>
+ </connection>
+ <connection>
+ <sender>metric</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>bar</receiver>
+ <slot>setChecked(bool)</slot>
+ </connection>
+ <connection>
+ <sender>imperial</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>cuft</receiver>
+ <slot>setChecked(bool)</slot>
+ </connection>
+ <connection>
+ <sender>metric</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>liter</receiver>
+ <slot>setChecked(bool)</slot>
+ </connection>
+ <connection>
+ <sender>imperial</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>fahrenheit</receiver>
+ <slot>setChecked(bool)</slot>
+ </connection>
+ <connection>
+ <sender>metric</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>celsius</receiver>
+ <slot>setChecked(bool)</slot>
+ </connection>
+ <connection>
+ <sender>imperial</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>lbs</receiver>
+ <slot>setChecked(bool)</slot>
+ </connection>
+ <connection>
+ <sender>metric</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>kg</receiver>
+ <slot>setChecked(bool)</slot>
+ </connection>
</connections>
<buttongroups>
<buttongroup name="buttonGroup"/>