From 1d9d6c097afce1f47671832db062ac5ef412147f Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 22:19:39 +0000 Subject: rename the following methods: tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/filelight@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/part/remoteLister.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/part/remoteLister.cpp') diff --git a/src/part/remoteLister.cpp b/src/part/remoteLister.cpp index fa80b4b..f18691a 100644 --- a/src/part/remoteLister.cpp +++ b/src/part/remoteLister.cpp @@ -24,15 +24,15 @@ namespace Filelight const KURL url; /// the directory on which we are operating Directory *directory; - /// so we can reference the tqparent store - Store *tqparent; + /// so we can reference the parent store + Store *parent; /// directories in this directory that need to be scanned before we can propagate() List stores; Store() - : directory( 0 ), tqparent( 0 ) {} + : directory( 0 ), parent( 0 ) {} Store( const KURL &u, const TQString &name, Store *s ) - : url( u ), directory( new Directory( name.local8Bit() + '/' ) ), tqparent( s ) {} + : url( u ), directory( new Directory( name.local8Bit() + '/' ) ), parent( s ) {} Store* @@ -42,13 +42,13 @@ namespace Filelight debug() << "propagate: " << url << endl; - if( tqparent ) { - tqparent->directory->append( directory ); - if( tqparent->stores.isEmpty() ) { - return tqparent->propagate(); + if( parent ) { + parent->directory->append( directory ); + if( parent->stores.isEmpty() ) { + return parent->propagate(); } else - return tqparent; + return parent; } //we reached the root, let's get our next directory scanned @@ -61,14 +61,14 @@ namespace Filelight }; - RemoteLister::RemoteLister( const KURL &url, TQWidget *tqparent ) + RemoteLister::RemoteLister( const KURL &url, TQWidget *parent ) : KDirLister( true /*don't fetch mimetypes*/ ) , m_root( new Store( url, url.url(), 0 ) ) , m_store( m_root ) { setAutoUpdate( false ); //don't use KDirWatchers setShowingDotFiles( true ); //stupid KDirLister API function names - setMainWindow( tqparent ); + setMainWindow( parent ); //use TQT_SIGNAL(result(KIO::Job*)) instead and then use Job::error() connect( this, TQT_SIGNAL(completed()), TQT_SLOT(completed()) ); @@ -84,7 +84,7 @@ namespace Filelight TQCustomEvent *e = new TQCustomEvent( 1000 ); e->setData( tree ); - TQApplication::postEvent( tqparent(), e ); + TQApplication::postEvent( parent(), e ); delete m_root; } @@ -126,7 +126,7 @@ namespace Filelight if( m_store->stores.isEmpty() ) - //no directories to scan, so we need to append ourselves to the tqparent directory + //no directories to scan, so we need to append ourselves to the parent directory //propagate() will return the next ancestor that has stores left to be scanned, or root if we are done m_store = m_store->propagate(); -- cgit v1.2.1