summaryrefslogtreecommitdiffstats
path: root/ksysguard/gui/SensorDisplayLib/ProcessList.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-15 19:15:16 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-15 19:15:16 +0000
commitcc0ad49c75d6cf6b4e63eb8c6012afe55c1589f9 (patch)
tree2a29ccab4d3cea34b87bfcbc38e64a8e25d25bb0 /ksysguard/gui/SensorDisplayLib/ProcessList.cc
parent107dd1f98367d07df7cbe2042786511e44706d3a (diff)
downloadtdebase-cc0ad49c75d6cf6b4e63eb8c6012afe55c1589f9.tar.gz
tdebase-cc0ad49c75d6cf6b4e63eb8c6012afe55c1589f9.zip
Allow kdebase to (mostly) function correctly with TQt for Qt4
Fix kicker tackbar handling under Classic mode (thanks to Ilya Chernykh for the patch) Fix a newly invalidated section of code under GCC 4.5.2 (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47723#c6) git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1220927 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 cc5ca3266..278e837c8 100644
--- a/ksysguard/gui/SensorDisplayLib/ProcessList.cc
+++ b/ksysguard/gui/SensorDisplayLib/ProcessList.cc
@@ -297,8 +297,8 @@ ProcessList::update(const TQString& list)
/* Disable painting to avoid flickering effects,
* especially when in tree view mode.
* Ditto for the scrollbar. */
- setUpdatesEnabled(false);
- viewport()->setUpdatesEnabled(false);
+ tqsetUpdatesEnabled(false);
+ viewport()->tqsetUpdatesEnabled(false);
pl.clear();
@@ -349,8 +349,8 @@ ProcessList::update(const TQString& list)
horizontalScrollBar()->setValue(hpos);
// Re-enable painting, and force an update.
- setUpdatesEnabled(true);
- viewport()->setUpdatesEnabled(true);
+ tqsetUpdatesEnabled(true);
+ viewport()->tqsetUpdatesEnabled(true);
triggerUpdate();
@@ -532,8 +532,8 @@ ProcessList::deleteLeaves(void)
{
unsigned int i;
for (i = 0; i < pl.count() &&
- (!isLeafProcess(pl.at(i)->pid()) ||
- matchesFilter(pl.at(i))); i++)
+ (!isLeafProcess(pl.tqat(i)->pid()) ||
+ matchesFilter(pl.tqat(i))); i++)
;
if (i == pl.count())
return;
@@ -546,7 +546,7 @@ bool
ProcessList::isLeafProcess(int pid)
{
for (unsigned int i = 0; i < pl.count(); i++)
- if (pl.at(i)->ppid() == pid)
+ if (pl.tqat(i)->ppid() == pid)
return (false);
return (true);