diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-07 18:23:54 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-07 18:29:13 +0900 |
| commit | 35149ce0bd6a7e9a315a395291ed4b59499b63cf (patch) | |
| tree | 8aa872ca24b4d1c6269367a838ccf426e627e190 /kmplot | |
| parent | dfc74d769f6ce85f3b6ed46fb4af1229d1de4426 (diff) | |
| download | tdeedu-35149ce0bd6a7e9a315a395291ed4b59499b63cf.tar.gz tdeedu-35149ce0bd6a7e9a315a395291ed4b59499b63cf.zip | |
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kmplot')
| -rw-r--r-- | kmplot/kmplot/kmplot.kcfg | 4 | ||||
| -rw-r--r-- | kmplot/kmplot/parser.cpp | 4 | ||||
| -rw-r--r-- | kmplot/kmplot/parser.h | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/kmplot/kmplot/kmplot.kcfg b/kmplot/kmplot/kmplot.kcfg index df9eba38..0013ab68 100644 --- a/kmplot/kmplot/kmplot.kcfg +++ b/kmplot/kmplot/kmplot.kcfg @@ -208,10 +208,10 @@ <whatsthis>If relative step width is set to true, the step width will be adapted to the size of the window.</whatsthis> <default>true</default> </entry> - <entry name="anglemode" type="Int"> + <entry name="anglemode" type="Bool"> <label>Radians instead of degrees</label> <whatsthis>Check the box if you want to use radians</whatsthis> - <default>0</default> + <default>false</default> </entry> <entry name="backgroundcolor" type="Color"> <label>Background color</label> diff --git a/kmplot/kmplot/parser.cpp b/kmplot/kmplot/parser.cpp index eaa741ff..13d37681 100644 --- a/kmplot/kmplot/parser.cpp +++ b/kmplot/kmplot/parser.cpp @@ -142,9 +142,9 @@ Parser::~Parser() } } -void Parser::setAngleMode(int angle) +void Parser::setAngleMode(bool angle) { - if(angle==0) + if(!angle) m_anglemode = 1; else m_anglemode = M_PI/180; diff --git a/kmplot/kmplot/parser.h b/kmplot/kmplot/parser.h index 559fb53e..f975156a 100644 --- a/kmplot/kmplot/parser.h +++ b/kmplot/kmplot/parser.h @@ -201,12 +201,12 @@ public: /// Returns the ID-number of the function "name". If the function couldn't be found, -1 is returned. int fnameToId(const TQString &name); /// Returns the current error value. If showMessageBox is true, an error message box will appear if an error was found - int parserError(bool showMessageBox=TRUE); + int parserError(bool showMessageBox=true); /// 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); /// sets the decimal symbol void setDecimalSymbol(const TQString ); |
