diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:58:12 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:58:12 -0600 |
commit | 6b45a7b7b2a804ccb2d522eb9ba6423fedb59b8f (patch) | |
tree | a08b27e3f4fde1ed82a5f061a2725998e8012f93 /konq-plugins/fsview/inode.cpp | |
parent | ca82971624269719d487c6f7980d7237f9420036 (diff) | |
download | tdeaddons-6b45a7b7b2a804ccb2d522eb9ba6423fedb59b8f.tar.gz tdeaddons-6b45a7b7b2a804ccb2d522eb9ba6423fedb59b8f.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit ca82971624269719d487c6f7980d7237f9420036.
Diffstat (limited to 'konq-plugins/fsview/inode.cpp')
-rw-r--r-- | konq-plugins/fsview/inode.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/konq-plugins/fsview/inode.cpp b/konq-plugins/fsview/inode.cpp index 6f5073c..d4875c2 100644 --- a/konq-plugins/fsview/inode.cpp +++ b/konq-plugins/fsview/inode.cpp @@ -168,7 +168,7 @@ void Inode::destroyed(ScanDir* d) { if (_dirPeer == d) _dirPeer = 0; - // remove children + // remove tqchildren clear(); } @@ -179,15 +179,15 @@ void Inode::destroyed(ScanFile* f) -TreeMapItemList* Inode::children() +TreeMapItemList* Inode::tqchildren() { if (!_dirPeer) return 0; - if (!_children) { + if (!_tqchildren) { if (!_dirPeer->scanStarted()) return 0; - _children = new TreeMapItemList; - _children->setAutoDelete(true); + _tqchildren = new TreeMapItemList; + _tqchildren->setAutoDelete(true); setSorting(-1); @@ -215,7 +215,7 @@ TreeMapItemList* Inode::children() _resortNeeded = false; } - return _children; + return _tqchildren; } @@ -284,7 +284,7 @@ TQColor Inode::backColor() const if (id>0) n = TQString::number(id); if (n.isEmpty()) - return widget()->colorGroup().button(); + return widget()->tqcolorGroup().button(); const char* str = n.ascii(); int h = 0, s = 100; @@ -325,21 +325,21 @@ TQString Inode::text(int i) const double s = size(); if (s < 1000) - text = TQString("%1 B").arg((int)(s+.5)); + text = TQString("%1 B").tqarg((int)(s+.5)); else if (s < 10 * 1024) - text = TQString("%1 kB").arg(KGlobal::locale()->formatNumber(s/1024+.005,2)); + text = TQString("%1 kB").tqarg(KGlobal::locale()->formatNumber(s/1024+.005,2)); else if (s < 100 * 1024) - text = TQString("%1 kB").arg(KGlobal::locale()->formatNumber(s/1024+.05,1)); + text = TQString("%1 kB").tqarg(KGlobal::locale()->formatNumber(s/1024+.05,1)); else if (s < 1000 * 1024) - text = TQString("%1 kB").arg((int)(s/1024+.5)); + text = TQString("%1 kB").tqarg((int)(s/1024+.5)); else if (s < 10 * 1024 * 1024) - text = TQString("%1 MB").arg(KGlobal::locale()->formatNumber(s/1024/1024+.005,2)); + text = TQString("%1 MB").tqarg(KGlobal::locale()->formatNumber(s/1024/1024+.005,2)); else if (s < 100 * 1024 * 1024) - text = TQString("%1 MB").arg(KGlobal::locale()->formatNumber(s/1024/1024+.05,1)); + text = TQString("%1 MB").tqarg(KGlobal::locale()->formatNumber(s/1024/1024+.05,1)); else if (s < 1000 * 1024 * 1024) - text = TQString("%1 MB").arg((int)(s/1024/1024+.5)); + text = TQString("%1 MB").tqarg((int)(s/1024/1024+.5)); else - text = TQString("%1 GB").arg(KGlobal::locale()->formatNumber(s/1024/1024/1024+.005,2)); + text = TQString("%1 GB").tqarg(KGlobal::locale()->formatNumber(s/1024/1024/1024+.005,2)); if (_sizeEstimation>0) text += "+"; return text; @@ -354,10 +354,10 @@ TQString Inode::text(int i) const if (f>0) { while (f>1000) { - text = TQString("%1 %2").arg(TQString::number(f).right(3)).arg(text); + text = TQString("%1 %2").tqarg(TQString::number(f).right(3)).tqarg(text); f /= 1000; } - text = TQString("%1 %2").arg(TQString::number(f)).arg(text); + text = TQString("%1 %2").tqarg(TQString::number(f)).tqarg(text); if (_fileCountEstimation>0) text += "+"; } return text; |