summaryrefslogtreecommitdiffstats
path: root/ksirc/puke/pbutton.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-05-03 15:55:36 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-05-08 17:13:22 +0900
commit2cab1f3059038ab001f5185c29f0791c77aeeba1 (patch)
treee294a699a78e0aef2969216fc8fc1378b83b0064 /ksirc/puke/pbutton.cpp
parentb2cb25ce7dde70c48747856d22dfac03f27033e1 (diff)
downloadtdenetwork-2cab1f30.tar.gz
tdenetwork-2cab1f30.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 89969dcb2142d91b295c8d18cde46e22ef118dce)
Diffstat (limited to 'ksirc/puke/pbutton.cpp')
-rw-r--r--ksirc/puke/pbutton.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/ksirc/puke/pbutton.cpp b/ksirc/puke/pbutton.cpp
index 6f128464..9751f875 100644
--- a/ksirc/puke/pbutton.cpp
+++ b/ksirc/puke/pbutton.cpp
@@ -12,7 +12,7 @@ PButton::createWidget(CreateArgs &ca)
{
PButton *pb = new PButton(ca.parent);
TQButton *qb;
- if(ca.parent != 0 && ca.parent->widget()->isWidgetType() == TRUE)
+ if(ca.parent != 0 && ca.parent->widget()->isWidgetType())
qb = new TQButton((TQWidget *) ca.parent->widget());
else
qb = new TQButton();
@@ -45,7 +45,7 @@ void PButton::messageHandler(int fd, PukeMessage *pm)
PukeMessage pmRet;
switch(pm->iCommand){
case PUKE_BUTTON_SET_TEXT:
- if(checkWidget() == FALSE)
+ if(!checkWidget())
return;
widget()->setText(pm->cArg); // set the text
@@ -57,7 +57,7 @@ void PButton::messageHandler(int fd, PukeMessage *pm)
emit outputMessage(fd, &pmRet);
break;
case PUKE_BUTTON_SET_PIXMAP:
- if(checkWidget() == FALSE)
+ if(!checkWidget())
return;
widget()->setPixmap(TQPixmap(pm->cArg));
@@ -69,7 +69,7 @@ void PButton::messageHandler(int fd, PukeMessage *pm)
emit outputMessage(fd, &pmRet);
break;
case PUKE_BUTTON_SET_AUTORESIZE:
- if(checkWidget() == FALSE)
+ if(!checkWidget())
return;
pmRet.iCommand = - pm->iCommand;
@@ -84,7 +84,7 @@ void PButton::messageHandler(int fd, PukeMessage *pm)
void PButton::setWidget(TQObject *_qb)
{
- if(_qb != 0 && _qb->inherits("TQButton") == FALSE)
+ if(_qb != 0 && !_qb->inherits("TQButton"))
{
errorInvalidSet(_qb);
return;
@@ -148,9 +148,9 @@ bool PButton::checkWidget()
{
if(widget() == 0){
kdDebug(5008) << "PButton: No Widget set" << endl;
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
}
#include "pbutton.moc"