Commit dbb6ae17 authored by Niklas Freund's avatar Niklas Freund
Browse files

Make radio button layout behave like before; Fix random window resizing by...

Make radio button layout behave like before; Fix random window resizing by reordering showing/hiding of buttons
parent a2eef1ae
......@@ -1922,10 +1922,10 @@ void KCalculator::slotSetScienceMode()
pbEE->show();
// show or hide some groups of buttons
showMemButtons(true);
showScienceButtons(true);
showStatButtons(false);
showLogicButtons(false);
showMemButtons(true);
showScienceButtons(true);
if (!constants_menu_) {
constants_menu_ = createConstantsMenu();
......@@ -1965,10 +1965,10 @@ void KCalculator::slotSetStatisticMode()
pbEE->show();
// show or hide some groups of buttons
showLogicButtons(false);
showMemButtons(true);
showScienceButtons(true);
showStatButtons(true);
showLogicButtons(false);
if (!constants_menu_) {
constants_menu_ = createConstantsMenu();
......@@ -2009,9 +2009,9 @@ void KCalculator::slotSetNumeralMode()
pbEE->show();
// show or hide some groups of buttons
showMemButtons(true);
showScienceButtons(false);
showStatButtons(false);
showMemButtons(true);
showLogicButtons(true);
if (!constants_menu_) {
......
......@@ -81,16 +81,13 @@
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<width>40</width>
<height>20</height>
</size>
</property>
......@@ -243,6 +240,19 @@
</item>
</layout>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment