diff options
Diffstat (limited to 'knode/knfoldermanager.cpp')
-rw-r--r-- | knode/knfoldermanager.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/knode/knfoldermanager.cpp b/knode/knfoldermanager.cpp index bdac2f2b9..7041f4562 100644 --- a/knode/knfoldermanager.cpp +++ b/knode/knfoldermanager.cpp @@ -156,7 +156,7 @@ bool KNFolderManager::deleteFolder(KNFolder *f) // find all subfolders of the folder we want to delete for ( TQValueList<KNFolder*>::Iterator it = mFolderList.begin(); it != mFolderList.end(); ++it ) { - p = (*it)->tqparent(); + p = (*it)->parent(); while ( p ) { if ( p == f ) { if ( (*it)->lockedArticles() > 0 ) @@ -164,7 +164,7 @@ bool KNFolderManager::deleteFolder(KNFolder *f) del.append( (*it) ); break; } - p = p->tqparent(); + p = p->parent(); } } @@ -198,15 +198,15 @@ void KNFolderManager::emptyFolder(KNFolder *f) bool KNFolderManager::moveFolder(KNFolder *f, KNFolder *p) { - if(!f || p==f->tqparent()) // nothing to be done + if(!f || p==f->parent()) // nothing to be done return true; // is "p" a child of "f" ? - KNCollection *p2=p?p->tqparent():0; + KNCollection *p2=p?p->parent():0; while(p2) { if(p2==f) break; - p2=p2->tqparent(); + p2=p2->parent(); } if( (p2 && p2==f) || f==p || f->isStandardFolder() || f->isRootFolder()) // no way ;-) @@ -466,7 +466,7 @@ int KNFolderManager::loadCustomFolders() // set parents if(cnt>0) { for ( TQValueList<KNFolder*>::Iterator it = mFolderList.begin(); it != mFolderList.end(); ++it ) { - if ( !(*it)->isRootFolder() ) { // the root folder has no tqparent + if ( !(*it)->isRootFolder() ) { // the root folder has no parent KNFolder *par = folder( (*it)->parentId() ); if ( !par ) par = root(); |