Commit 857bc549 authored by Luca Carlon's avatar Luca Carlon Committed by Ahmad Samir

Add the backspace button to the list of memory buttons

The backspace button seems not to be added to any set of buttons,
reulting in incoherent font color.
This commit adds it to the memory buttons, like the clear button,
making the font color coherent with the rest of the buttons and
background and foreground colors to be set in the proper section.
parent d2774ba3
......@@ -654,6 +654,7 @@ void KCalculator::setupKeys() {
mem_button_list_.append(pbMemClear);
mem_button_list_.append(pbClear);
mem_button_list_.append(pbAllClear);
mem_button_list_.append(pbBackspace);
operation_button_list_.append(pbMultiplication);
operation_button_list_.append(pbParenOpen);
......@@ -1760,7 +1761,6 @@ void KCalculator::slotSetSimpleMode() {
pbSquare->hide();
pbPower->hide();
pbCube->hide();
pbBackspace->hide();
pbEE->hide();
// delete the constant menu since it doesn't fit
......@@ -1791,7 +1791,6 @@ void KCalculator::slotSetScienceMode() {
pbSquare->show();
pbPower->show();
pbCube->show();
pbBackspace->show();
pbEE->show();
// show or hide some groups of buttons
......@@ -1829,7 +1828,6 @@ void KCalculator::slotSetStatisticMode() {
pbSquare->show();
pbPower->show();
pbCube->show();
pbBackspace->show();
pbEE->show();
// show or hide some groups of buttons
......@@ -1868,7 +1866,6 @@ void KCalculator::slotSetNumeralMode() {
pbSquare->show();
pbPower->show();
pbCube->show();
pbBackspace->show();
pbEE->show();
// show or hide some groups of buttons
......
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