diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-05-03 15:55:36 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-05-08 17:13:22 +0900 |
| commit | 2cab1f3059038ab001f5185c29f0791c77aeeba1 (patch) | |
| tree | e294a699a78e0aef2969216fc8fc1378b83b0064 /ksirc/puke/palistbox.cpp | |
| parent | b2cb25ce7dde70c48747856d22dfac03f27033e1 (diff) | |
| download | tdenetwork-2cab1f3059038ab001f5185c29f0791c77aeeba1.tar.gz tdenetwork-2cab1f3059038ab001f5185c29f0791c77aeeba1.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/palistbox.cpp')
| -rw-r--r-- | ksirc/puke/palistbox.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ksirc/puke/palistbox.cpp b/ksirc/puke/palistbox.cpp index 9f43b124..9a930da7 100644 --- a/ksirc/puke/palistbox.cpp +++ b/ksirc/puke/palistbox.cpp @@ -8,11 +8,11 @@ PAListBox::createWidget(CreateArgs &ca) { PAListBox *plb = new PAListBox(ca.parent); aListBox *lb; - if(ca.fetchedObj != 0 && ca.fetchedObj->inherits("aListBox") == TRUE){ + if(ca.fetchedObj != 0 && ca.fetchedObj->inherits("aListBox")){ lb = (aListBox *) ca.fetchedObj; - plb->setDeleteAble(FALSE); + plb->setDeleteAble(false); } - else if(ca.parent != 0 && ca.parent->widget()->isWidgetType() == TRUE) + else if(ca.parent != 0 && ca.parent->widget()->isWidgetType()) lb = new aListBox((TQWidget *) ca.parent->widget()); else lb = new aListBox(); @@ -88,7 +88,7 @@ void PAListBox::messageHandler(int fd, PukeMessage *pm) widget()->removeItem(index); item->setVoice(pm->iArg); widget()->inSort(item); - widget()->repaint(TRUE); + widget()->repaint(true); pmRet.iCommand = - pm->iCommand; pmRet.iWinId = pm->iWinId; @@ -108,7 +108,7 @@ void PAListBox::messageHandler(int fd, PukeMessage *pm) widget()->removeItem(index); item->setOp(pm->iArg); widget()->inSort(item); - widget()->repaint(TRUE); + widget()->repaint(true); pmRet.iCommand = - pm->iCommand; pmRet.iWinId = pm->iWinId; @@ -125,7 +125,7 @@ void PAListBox::messageHandler(int fd, PukeMessage *pm) void PAListBox::setWidget(TQObject *_lb) { - if(_lb != 0 && _lb->inherits("aListBox") == FALSE) + if(_lb != 0 && !_lb->inherits("aListBox")) { errorInvalidSet(_lb); return; @@ -147,9 +147,9 @@ aListBox *PAListBox::widget() bool PAListBox::checkWidget(){ if(widget() == 0){ kdDebug(5008) << "PAListBox: No Widget set" << endl; - return FALSE; + return false; } - return TRUE; + return true; } #include "palistbox.moc" |
