summaryrefslogtreecommitdiffstats
path: root/kicker-applets/math
diff options
context:
space:
mode:
Diffstat (limited to 'kicker-applets/math')
-rw-r--r--kicker-applets/math/mathapplet.cpp4
-rw-r--r--kicker-applets/math/parser.cpp4
-rw-r--r--kicker-applets/math/parser.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/kicker-applets/math/mathapplet.cpp b/kicker-applets/math/mathapplet.cpp
index f38bcb2..5c1410f 100644
--- a/kicker-applets/math/mathapplet.cpp
+++ b/kicker-applets/math/mathapplet.cpp
@@ -139,14 +139,14 @@ void MathApplet::useDegrees() {
mContextMenu->setItemChecked(0, true);
mContextMenu->setItemChecked(1, false);
Parser dummy;
- dummy.setAngleMode(1);
+ dummy.setAngleMode(true);
}
void MathApplet::useRadians() {
mContextMenu->setItemChecked(0, false);
mContextMenu->setItemChecked(1, true);
Parser dummy;
- dummy.setAngleMode(0);
+ dummy.setAngleMode(false);
}
void MathApplet::resizeEvent(TQResizeEvent*)
diff --git a/kicker-applets/math/parser.cpp b/kicker-applets/math/parser.cpp
index 6dc928b..6b65b53 100644
--- a/kicker-applets/math/parser.cpp
+++ b/kicker-applets/math/parser.cpp
@@ -125,8 +125,8 @@ Parser::Ufkt::~Ufkt()
}
-void Parser::setAngleMode(int angle)
-{ if(angle==0)
+void Parser::setAngleMode(bool angle)
+{ if (!angle)
m_anglemode = 1;
else
m_anglemode = M_PI/180;
diff --git a/kicker-applets/math/parser.h b/kicker-applets/math/parser.h
index 319c470..5a7149d 100644
--- a/kicker-applets/math/parser.h
+++ b/kicker-applets/math/parser.h
@@ -151,8 +151,8 @@ public:
void setparameter(int ix, double k) {ufkt[ix].k=k;}
/// return the angletype
static double anglemode();
- /// sets the angletype. TRUE is radians and FALSE degrees
- void setAngleMode(int);
+ /// sets the angletype. true is radians and false degrees
+ void setAngleMode(bool);
TQValueVector<Constant> constant;