Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
KCalc
Commits
df8235a0
Verified
Commit
df8235a0
authored
Sep 15, 2021
by
Antonio Prcela
🏞
Browse files
Add missing sin, sinh, arcsin for history text
parent
1ddd02a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
kcalc.cpp
View file @
df8235a0
...
...
@@ -1006,13 +1006,16 @@ void KCalculator::slotSinclicked()
if
(
hyp_mode_
)
{
// sinh or arsinh
if
(
!
shift_mode_
)
{
calc_history
->
addFuncToHistory
(
QStringLiteral
(
"sinh"
));
core
.
SinHyp
(
calc_display
->
getAmount
());
}
else
{
calc_history
->
addFuncToHistory
(
QStringLiteral
(
"arcsin"
));
core
.
AreaSinHyp
(
calc_display
->
getAmount
());
}
}
else
{
// sine or arcsine
if
(
!
shift_mode_
)
{
calc_history
->
addFuncToHistory
(
QStringLiteral
(
"sin"
));
switch
(
angle_mode_
)
{
case
DegMode
:
core
.
SinDeg
(
calc_display
->
getAmount
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment