diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | df8e67b86696f691708af8592d86282b09bab011 (patch) | |
tree | ca90d734c9011d457a42f0a7004a9507b2c2c1bd /libk3b/projects/datacd/k3bdiritem.cpp | |
parent | 33881ea4441221b1ca0789a72c4c7249d923a0df (diff) | |
download | k3b-df8e67b8.tar.gz k3b-df8e67b8.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libk3b/projects/datacd/k3bdiritem.cpp')
-rw-r--r-- | libk3b/projects/datacd/k3bdiritem.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libk3b/projects/datacd/k3bdiritem.cpp b/libk3b/projects/datacd/k3bdiritem.cpp index 16627c7..72af70b 100644 --- a/libk3b/projects/datacd/k3bdiritem.cpp +++ b/libk3b/projects/datacd/k3bdiritem.cpp @@ -37,8 +37,8 @@ K3bDirItem::K3bDirItem(const TQString& name, K3bDataDoc* doc, K3bDirItem* parent m_k3bName = name; // add automagically like a qlistviewitem - if( tqparent() ) - tqparent()->addDataItem( this ); + if( parent() ) + parent()->addDataItem( this ); } @@ -106,7 +106,7 @@ K3bDirItem* K3bDirItem::addDataItem( K3bDataItem* item ) int cnt = 1; while( K3bDataItem* oldItem = find( name ) ) { if( !oldItem->isDir() && oldItem->isFromOldSession() ) { - // in this case we remove this item from it's tqparent and save it in the new one + // in this case we remove this item from it's parent and save it in the new one // to be able to recover it oldItem->take(); static_cast<K3bSessionImportItem*>(oldItem)->setReplaceItem( static_cast<K3bFileItem*>(item) ); @@ -238,8 +238,8 @@ bool K3bDirItem::mkdir( const TQString& dirPath ) // An absolut path always starts at the root item // if( dirPath[0] == '/' ) { - if( tqparent() ) - return tqparent()->mkdir( dirPath ); + if( parent() ) + return parent()->mkdir( dirPath ); else return mkdir( dirPath.mid( 1 ) ); } @@ -294,12 +294,12 @@ bool K3bDirItem::isSubItem( K3bDataItem* item ) const if( dynamic_cast<K3bDirItem*>(item) == this ) return true; - K3bDirItem* d = item->tqparent(); + K3bDirItem* d = item->parent(); while( d ) { if( d == this ) { return true; } - d = d->tqparent(); + d = d->parent(); } return false; @@ -349,16 +349,16 @@ void K3bDirItem::updateSize( K3bDataItem* item, bool removed ) } } - if( tqparent() ) - tqparent()->updateSize( item, removed ); + if( parent() ) + parent()->updateSize( item, removed ); } void K3bDirItem::updateFiles( long files, long dirs ) { m_files += files; m_dirs += dirs; - if( tqparent() ) - tqparent()->updateFiles( files, dirs ); + if( parent() ) + parent()->updateFiles( files, dirs ); } |