diff options
author | Timothy Pearson <[email protected]> | 2011-12-15 15:32:56 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-15 15:32:56 -0600 |
commit | f96f74ffa7040e64ae3352e08c810c383c8a0ba2 (patch) | |
tree | 8f4cdf2f66860234f9ae889cd483b44150affb2c /libktorrent/interfaces/filetreediritem.cpp | |
parent | 0ad9f974f4ad92a3f1458a76d4df26d843efeab7 (diff) | |
download | ktorrent-f96f74ffa7040e64ae3352e08c810c383c8a0ba2.tar.gz ktorrent-f96f74ffa7040e64ae3352e08c810c383c8a0ba2.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'libktorrent/interfaces/filetreediritem.cpp')
-rw-r--r-- | libktorrent/interfaces/filetreediritem.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/libktorrent/interfaces/filetreediritem.cpp b/libktorrent/interfaces/filetreediritem.cpp index 86481f2..93db727 100644 --- a/libktorrent/interfaces/filetreediritem.cpp +++ b/libktorrent/interfaces/filetreediritem.cpp @@ -73,7 +73,7 @@ namespace kt int p = path.find(bt::DirSeparator()); if (p == -1) { - tqchildren.insert(path,newFileTreeItem(path,file)); + children.insert(path,newFileTreeItem(path,file)); } else { @@ -98,8 +98,8 @@ namespace kt manual_change = false; } // first set all the child items - bt::PtrMap<TQString,FileTreeItem>::iterator i = tqchildren.begin(); - while (i != tqchildren.end()) + bt::PtrMap<TQString,FileTreeItem>::iterator i = children.begin(); + while (i != children.end()) { i->second->setChecked(on,keep_data); i++; @@ -118,8 +118,8 @@ namespace kt void FileTreeDirItem::invertChecked() { // first set all the child items - bt::PtrMap<TQString,FileTreeItem>::iterator i = tqchildren.begin(); - while (i != tqchildren.end()) + bt::PtrMap<TQString,FileTreeItem>::iterator i = children.begin(); + while (i != children.end()) { FileTreeItem* item = i->second; item->setChecked(!item->isOn()); @@ -171,8 +171,8 @@ namespace kt { Uint64 tot = 0; // first check all the child items - bt::PtrMap<TQString,FileTreeItem>::const_iterator i = tqchildren.begin(); - while (i != tqchildren.end()) + bt::PtrMap<TQString,FileTreeItem>::const_iterator i = children.begin(); + while (i != children.end()) { const FileTreeItem* item = i->second; tot += item->bytesToDownload(); @@ -192,8 +192,8 @@ namespace kt bool FileTreeDirItem::allChildrenOn() { // first check all the child items - bt::PtrMap<TQString,FileTreeItem>::iterator i = tqchildren.begin(); - while (i != tqchildren.end()) + bt::PtrMap<TQString,FileTreeItem>::iterator i = children.begin(); + while (i != children.end()) { FileTreeItem* item = i->second; if (!item->isOn()) @@ -214,7 +214,7 @@ namespace kt void FileTreeDirItem::childStateChange() { - // only set this dir on if all tqchildren are on + // only set this dir on if all children are on manual_change = true; setOn(allChildrenOn()); manual_change = false; @@ -248,8 +248,8 @@ namespace kt { // first check all the child items TorrentFileInterface & nullfile = (TorrentFileInterface &)TorrentFile::null; - bt::PtrMap<TQString,FileTreeItem>::iterator i = tqchildren.begin(); - while (i != tqchildren.end()) + bt::PtrMap<TQString,FileTreeItem>::iterator i = children.begin(); + while (i != children.end()) { FileTreeItem* file = i->second; if (file == (FileTreeItem*)item) |