Changeset View
Changeset View
Standalone View
Standalone View
kcalc.cpp
Show First 20 Lines • Show All 917 Lines • ▼ Show 20 Line(s) | |||||
918 | 918 | | |||
919 | //------------------------------------------------------------------------------ | 919 | //------------------------------------------------------------------------------ | ||
920 | // Name: slotNumberclicked | 920 | // Name: slotNumberclicked | ||
921 | // Desc: user has entered a digit | 921 | // Desc: user has entered a digit | ||
922 | //------------------------------------------------------------------------------ | 922 | //------------------------------------------------------------------------------ | ||
923 | void KCalculator::slotNumberclicked(int number_clicked) { | 923 | void KCalculator::slotNumberclicked(int number_clicked) { | ||
924 | 924 | | |||
925 | calc_display->enterDigit(number_clicked); | 925 | calc_display->enterDigit(number_clicked); | ||
926 | core.setOnlyUpdateOperation(false); | ||||
926 | } | 927 | } | ||
927 | 928 | | |||
928 | //------------------------------------------------------------------------------ | 929 | //------------------------------------------------------------------------------ | ||
929 | // Name: slotSinclicked | 930 | // Name: slotSinclicked | ||
930 | // Desc: executes the sine function | 931 | // Desc: executes the sine function | ||
931 | //------------------------------------------------------------------------------ | 932 | //------------------------------------------------------------------------------ | ||
932 | void KCalculator::slotSinclicked() { | 933 | void KCalculator::slotSinclicked() { | ||
933 | 934 | | |||
▲ Show 20 Lines • Show All 1116 Lines • ▼ Show 20 Line(s) | |||||
2050 | //------------------------------------------------------------------------------ | 2051 | //------------------------------------------------------------------------------ | ||
2051 | // Name: updateDisplay | 2052 | // Name: updateDisplay | ||
2052 | // Desc: updates the display | 2053 | // Desc: updates the display | ||
2053 | //------------------------------------------------------------------------------ | 2054 | //------------------------------------------------------------------------------ | ||
2054 | void KCalculator::updateDisplay(UpdateFlags flags) { | 2055 | void KCalculator::updateDisplay(UpdateFlags flags) { | ||
2055 | 2056 | | |||
2056 | if(flags & UPDATE_FROM_CORE) { | 2057 | if(flags & UPDATE_FROM_CORE) { | ||
2057 | calc_display->updateFromCore(core, (flags & UPDATE_STORE_RESULT) != 0); | 2058 | calc_display->updateFromCore(core, (flags & UPDATE_STORE_RESULT) != 0); | ||
2059 | core.setOnlyUpdateOperation(true); | ||||
cfeck: The indentation is inconsistent with surrounding code. | |||||
2058 | } else { | 2060 | } else { | ||
2059 | calc_display->update(); | 2061 | calc_display->update(); | ||
2060 | } | 2062 | } | ||
2061 | 2063 | | |||
2062 | pbShift->setChecked(false); | 2064 | pbShift->setChecked(false); | ||
2063 | 2065 | | |||
2064 | } | 2066 | } | ||
2065 | 2067 | | |||
▲ Show 20 Lines • Show All 268 Lines • Show Last 20 Lines |
The indentation is inconsistent with surrounding code.