summaryrefslogtreecommitdiffstats
path: root/src/modules/objects/class_widget.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-03-22 14:06:03 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-03-22 14:27:39 +0900
commit291b4f5da2f98283b7c98ee90401df7c3cb34dad (patch)
treea28eb1a3c46756a6c6dbf3cdaa7bd88807d237c8 /src/modules/objects/class_widget.cpp
parent1f1b292b68c4fe5d4843dba00eff77b431e6bc12 (diff)
downloadkvirc-291b4f5da2f98283b7c98ee90401df7c3cb34dad.tar.gz
kvirc-291b4f5da2f98283b7c98ee90401df7c3cb34dad.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/modules/objects/class_widget.cpp')
-rw-r--r--src/modules/objects/class_widget.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/objects/class_widget.cpp b/src/modules/objects/class_widget.cpp
index a5da660..f3b11d2 100644
--- a/src/modules/objects/class_widget.cpp
+++ b/src/modules/objects/class_widget.cpp
@@ -110,7 +110,7 @@ const int widgettypes_cod[] = {
See also [classfnc]$show[/classfnc]() and [classfnc]$isVisible[/classfnc].
!fn: $repaint(<bool erase>)
Repaints the widget directly by calling [classfnc]$paintEvent[/classfnc]() immediately.[br]
- If erase is TRUE, erases the widget before the $paintEvent() call.
+ If erase is true, erases the widget before the $paintEvent() call.
!fn: $x()
Returns the x coordinate of the upper-left corner
of this widget relative to the parent widget,
@@ -1514,12 +1514,12 @@ bool KviKvsObject_widget::function_setFont(KviKvsObjectFunctionCall *c)
TQFont font=widget()->font();
font.setFamily(szFamily);
font.setPointSize(uSize);
- if(KviTQString::equalCI(szStyle,"italic")) font.setItalic(TRUE);
- else if(KviTQString::equalCI(szStyle,"bold")) font.setBold(TRUE);
- else if(KviTQString::equalCI(szStyle,"underline"))font.setUnderline(TRUE);
- else if(KviTQString::equalCI(szStyle,"overline")) font.setOverline(TRUE);
- else if(KviTQString::equalCI(szStyle,"strikeout"))font.setStrikeOut(TRUE);
- else if(KviTQString::equalCI(szStyle,"fixedpitch")) font.setFixedPitch(TRUE);
+ if(KviTQString::equalCI(szStyle,"italic")) font.setItalic(true);
+ else if(KviTQString::equalCI(szStyle,"bold")) font.setBold(true);
+ else if(KviTQString::equalCI(szStyle,"underline"))font.setUnderline(true);
+ else if(KviTQString::equalCI(szStyle,"overline")) font.setOverline(true);
+ else if(KviTQString::equalCI(szStyle,"strikeout"))font.setStrikeOut(true);
+ else if(KviTQString::equalCI(szStyle,"fixedpitch")) font.setFixedPitch(true);
else c->warning(__tr2qs("Unknown style '%Q'"),&szStyle);
widget()->setFont(font);
return true;