summaryrefslogtreecommitdiffstats
path: root/ksysguard/gui/SensorDisplayLib/ProcessList.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-19 01:42:14 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-19 01:42:14 +0000
commit8155225c9be993acc0512956416d195edfef4eb9 (patch)
treede4f3cd17614fc67e47eefabcdbe2fbe170c9be7 /ksysguard/gui/SensorDisplayLib/ProcessList.cc
parent364641b8e0279758d236af39abd138d379328a19 (diff)
downloadtdebase-8155225c9be993acc0512956416d195edfef4eb9.tar.gz
tdebase-8155225c9be993acc0512956416d195edfef4eb9.zip
Enable compilation with TQt for Qt4 3.4.0 TP2
This should not break compatibility with TQt for Qt3; if it does please fix it ASAP! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1215552 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksysguard/gui/SensorDisplayLib/ProcessList.cc')
-rw-r--r--ksysguard/gui/SensorDisplayLib/ProcessList.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/ksysguard/gui/SensorDisplayLib/ProcessList.cc b/ksysguard/gui/SensorDisplayLib/ProcessList.cc
index 2f5b3fe51..cc5ca3266 100644
--- a/ksysguard/gui/SensorDisplayLib/ProcessList.cc
+++ b/ksysguard/gui/SensorDisplayLib/ProcessList.cc
@@ -486,7 +486,7 @@ ProcessList::buildList()
addProcess(p, pli);
- if (selectedPIds.findIndex(p->pid()) != -1)
+ if (selectedPIds.tqfindIndex(p->pid()) != -1)
pli->setSelected(true);
}
pl.removeFirst();
@@ -513,7 +513,7 @@ ProcessList::buildTree()
int pid = ps->pid();
pl.remove();
- if (selectedPIds.findIndex(pid) != -1)
+ if (selectedPIds.tqfindIndex(pid) != -1)
pli->setSelected(true);
// insert all child processes of current process
@@ -569,10 +569,10 @@ ProcessList::extendTree(TQPtrList<KSGRD::SensorPSLine>* pl, ProcessLVI* parent,
addProcess(ps, pli);
- if (selectedPIds.findIndex(ps->pid()) != -1)
+ if (selectedPIds.tqfindIndex(ps->pid()) != -1)
pli->setSelected(true);
- if (ps->ppid() != INIT_PID && closedSubTrees.findIndex(ps->ppid()) != -1)
+ if (ps->ppid() != INIT_PID && closedSubTrees.tqfindIndex(ps->ppid()) != -1)
parent->setOpen(false);
else
parent->setOpen(true);
@@ -635,7 +635,7 @@ ProcessList::addProcess(KSGRD::SensorPSLine* p, ProcessLVI* pli)
icon.fill();
bitBlt(&icon, 4, 0, &pix, 0, 0, pix.width(), pix.height());
TQBitmap mask(24, 16, true);
- bitBlt(&mask, 4, 0, pix.mask(), 0, 0, pix.width(), pix.height());
+ bitBlt(&mask, 4, 0, pix.tqmask(), 0, 0, pix.width(), pix.height());
icon.setMask(mask);
pix = icon;
}
@@ -909,7 +909,7 @@ ProcessList::selectAllItems(bool select)
for ( ; it.current(); ++it )
{
it.current()->setSelected(select);
- repaintItem(it.current());
+ tqrepaintItem(it.current());
if (select)
selectedPIds.append(it.current()->text(1).toInt());
}
@@ -928,7 +928,7 @@ ProcessList::selectAllChilds(int pid, bool select)
{
int currPId = it.current()->text(1).toInt();
it.current()->setSelected(select);
- repaintItem(it.current());
+ tqrepaintItem(it.current());
if (select)
selectedPIds.append(currPId);
else