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>
This commit is contained in:
Anton Lundin 2013-12-08 14:18:28 +01:00 committed by Dirk Hohndel
parent 8c65173746
commit a145c2e61a

View file

@ -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"/>