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
v3.5.13-sru
tpearson 14 years ago
parent 649f3d48bf
commit 1d9d6c097a

@ -40,8 +40,8 @@ HistoryAction::pop()
HistoryCollection::HistoryCollection( KActionCollection *ac, TQObject *tqparent, const char *name ) HistoryCollection::HistoryCollection( KActionCollection *ac, TQObject *parent, const char *name )
: TQObject( tqparent, name ) : TQObject( parent, name )
, m_b( new HistoryAction( i18n( "Back" ), "back", KStdAccel::back(), ac, "go_back" ) ) , m_b( new HistoryAction( i18n( "Back" ), "back", KStdAccel::back(), ac, "go_back" ) )
, m_f( new HistoryAction( i18n( "Forward" ), "forward", KStdAccel::forward(), ac, "go_forward" ) ) , m_f( new HistoryAction( i18n( "Forward" ), "forward", KStdAccel::forward(), ac, "go_forward" ) )
, m_receiver( 0 ) , m_receiver( 0 )

@ -43,7 +43,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
HistoryCollection( KActionCollection *ac, TQObject *tqparent, const char *name ); HistoryCollection( KActionCollection *ac, TQObject *parent, const char *name );
void save( KConfig *config ); void save( KConfig *config );
void restore( KConfig *config ); void restore( KConfig *config );

@ -20,7 +20,7 @@ File::fullPath( const Directory *root /*= 0*/ ) const
if( root == this ) if( root == this )
root = 0; //prevent returning empty string when there is something we could return root = 0; //prevent returning empty string when there is something we could return
for( const Directory *d = (Directory*)this; d != root && d; d = d->tqparent() ) for( const Directory *d = (Directory*)this; d != root && d; d = d->parent() )
path.prepend( d->name() ); path.prepend( d->name() );
return path; return path;

@ -168,7 +168,7 @@ public:
File( const char *name, FileSize size ) : m_parent( 0 ), m_name( qstrdup( name ) ), m_size( size ) {} File( const char *name, FileSize size ) : m_parent( 0 ), m_name( qstrdup( name ) ), m_size( size ) {}
virtual ~File() { delete [] m_name; } virtual ~File() { delete [] m_name; }
const Directory *tqparent() const { return m_parent; } const Directory *parent() const { return m_parent; }
const char *name8Bit() const { return m_name; } const char *name8Bit() const { return m_name; }
const FileSize size() const { return m_size; } const FileSize size() const { return m_size; }
TQString name() const { return TQFile::decodeName( m_name ); } TQString name() const { return TQFile::decodeName( m_name ); }
@ -182,7 +182,7 @@ public:
static TQString humanReadableSize( uint size, UnitPrefix Key = mega ); static TQString humanReadableSize( uint size, UnitPrefix Key = mega );
protected: protected:
File( const char *name, FileSize size, Directory *tqparent ) : m_parent( tqparent ), m_name( qstrdup( name ) ), m_size( size ) {} File( const char *name, FileSize size, Directory *parent ) : m_parent( parent ), m_name( qstrdup( name ) ), m_size( size ) {}
Directory *m_parent; //0 if this is treeRoot Directory *m_parent; //0 if this is treeRoot
char *m_name; char *m_name;

@ -22,11 +22,11 @@ namespace Filelight
TQStringList LocalLister::s_remoteMounts; TQStringList LocalLister::s_remoteMounts;
TQStringList LocalLister::s_localMounts; TQStringList LocalLister::s_localMounts;
LocalLister::LocalLister( const TQString &path, Chain<Directory> *cachedTrees, TQObject *tqparent ) LocalLister::LocalLister( const TQString &path, Chain<Directory> *cachedTrees, TQObject *parent )
: TQThread() : TQThread()
, m_path( path ) , m_path( path )
, m_trees( cachedTrees ) , m_trees( cachedTrees )
, m_parent( tqparent ) , m_parent( parent )
{ {
//add empty directories for any mount points that are in the path //add empty directories for any mount points that are in the path
//TODO empty directories is not ideal as adds to fileCount incorrectly //TODO empty directories is not ideal as adds to fileCount incorrectly

@ -14,7 +14,7 @@ namespace Filelight
class LocalLister : public TQThread class LocalLister : public TQThread
{ {
public: public:
LocalLister( const TQString &path, Chain<Directory> *cachedTrees, TQObject *tqparent ); LocalLister( const TQString &path, Chain<Directory> *cachedTrees, TQObject *parent );
static bool readMounts(); static bool readMounts();

@ -33,13 +33,13 @@ typedef KParts::GenericFactory<Filelight::Part> Factory;
K_EXPORT_COMPONENT_FACTORY( libfilelight, Filelight::Factory ) K_EXPORT_COMPONENT_FACTORY( libfilelight, Filelight::Factory )
BrowserExtension::BrowserExtension( Part *tqparent, const char *name ) BrowserExtension::BrowserExtension( Part *parent, const char *name )
: KParts::BrowserExtension( tqparent, name ) : KParts::BrowserExtension( parent, name )
{} {}
Part::Part( TQWidget *parentWidget, const char *widgetName, TQObject *tqparent, const char *name, const TQStringList& ) Part::Part( TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name, const TQStringList& )
: ReadOnlyPart( tqparent, name ) : ReadOnlyPart( parent, name )
, m_ext( new BrowserExtension( this ) ) , m_ext( new BrowserExtension( this ) )
, m_statusbar( new StatusBarExtension( this ) ) , m_statusbar( new StatusBarExtension( this ) )
, m_map( 0 ) , m_map( 0 )

@ -10,8 +10,8 @@
#include "progressBox.h" #include "progressBox.h"
ProgressBox::ProgressBox( TQWidget *tqparent, TQObject *part ) ProgressBox::ProgressBox( TQWidget *parent, TQObject *part )
: TQLabel( tqparent, "ProgressBox" ) : TQLabel( parent, "ProgressBox" )
{ {
hide(); hide();

@ -80,7 +80,7 @@ RadialMap::Widget::paintExplodedLabels( TQPainter &paint ) const
//find the range of levels we will be potentially drawing labels for //find the range of levels we will be potentially drawing labels for
//startLevel is the level above whatever m_focus is in //startLevel is the level above whatever m_focus is in
for( const Directory *p = (const Directory*)m_focus->file(); p != m_tree; ++startLevel ) for( const Directory *p = (const Directory*)m_focus->file(); p != m_tree; ++startLevel )
p = p->tqparent(); p = p->parent();
//range=2 means 2 levels to draw labels for //range=2 means 2 levels to draw labels for

@ -17,8 +17,8 @@
RadialMap::Widget::Widget( TQWidget *tqparent, const char *name ) RadialMap::Widget::Widget( TQWidget *parent, const char *name )
: TQWidget( tqparent, name, TQt::WNoAutoErase ) : TQWidget( parent, name, TQt::WNoAutoErase )
, m_tree( 0 ) , m_tree( 0 )
, m_focus( 0 ) , m_focus( 0 )
, m_rootSegment( 0 ) //TODO we don't delete it, *shrug* , m_rootSegment( 0 ) //TODO we don't delete it, *shrug*

@ -131,7 +131,7 @@ RadialMap::Widget::mouseMoveEvent( TQMouseEvent *e )
tqrepaint( false ); tqrepaint( false );
} }
m_tip->moveTo( e->globalPos(), *this, ( p.y() < 0 ) ); //updates tooltip psuedo-trantqparent background m_tip->moveTo( e->globalPos(), *this, ( p.y() < 0 ) ); //updates tooltip psuedo-tranparent background
} }
else if( oldFocus && oldFocus->file() != m_tree ) else if( oldFocus && oldFocus->file() != m_tree )
{ {

@ -24,15 +24,15 @@ namespace Filelight
const KURL url; const KURL url;
/// the directory on which we are operating /// the directory on which we are operating
Directory *directory; Directory *directory;
/// so we can reference the tqparent store /// so we can reference the parent store
Store *tqparent; Store *parent;
/// directories in this directory that need to be scanned before we can propagate() /// directories in this directory that need to be scanned before we can propagate()
List stores; List stores;
Store() Store()
: directory( 0 ), tqparent( 0 ) {} : directory( 0 ), parent( 0 ) {}
Store( const KURL &u, const TQString &name, Store *s ) 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* Store*
@ -42,13 +42,13 @@ namespace Filelight
debug() << "propagate: " << url << endl; debug() << "propagate: " << url << endl;
if( tqparent ) { if( parent ) {
tqparent->directory->append( directory ); parent->directory->append( directory );
if( tqparent->stores.isEmpty() ) { if( parent->stores.isEmpty() ) {
return tqparent->propagate(); return parent->propagate();
} }
else else
return tqparent; return parent;
} }
//we reached the root, let's get our next directory scanned //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*/ ) : KDirLister( true /*don't fetch mimetypes*/ )
, m_root( new Store( url, url.url(), 0 ) ) , m_root( new Store( url, url.url(), 0 ) )
, m_store( m_root ) , m_store( m_root )
{ {
setAutoUpdate( false ); //don't use KDirWatchers setAutoUpdate( false ); //don't use KDirWatchers
setShowingDotFiles( true ); //stupid KDirLister API function names setShowingDotFiles( true ); //stupid KDirLister API function names
setMainWindow( tqparent ); setMainWindow( parent );
//use TQT_SIGNAL(result(KIO::Job*)) instead and then use Job::error() //use TQT_SIGNAL(result(KIO::Job*)) instead and then use Job::error()
connect( this, TQT_SIGNAL(completed()), TQT_SLOT(completed()) ); connect( this, TQT_SIGNAL(completed()), TQT_SLOT(completed()) );
@ -84,7 +84,7 @@ namespace Filelight
TQCustomEvent *e = new TQCustomEvent( 1000 ); TQCustomEvent *e = new TQCustomEvent( 1000 );
e->setData( tree ); e->setData( tree );
TQApplication::postEvent( tqparent(), e ); TQApplication::postEvent( parent(), e );
delete m_root; delete m_root;
} }
@ -126,7 +126,7 @@ namespace Filelight
if( m_store->stores.isEmpty() ) 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 //propagate() will return the next ancestor that has stores left to be scanned, or root if we are done
m_store = m_store->propagate(); m_store = m_store->propagate();

@ -13,7 +13,7 @@ namespace Filelight
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
RemoteLister( const KURL &url, TQWidget *tqparent ); RemoteLister( const KURL &url, TQWidget *parent );
~RemoteLister(); ~RemoteLister();
private slots: private slots:

@ -15,8 +15,8 @@ namespace Filelight
bool ScanManager::s_abort = false; bool ScanManager::s_abort = false;
uint ScanManager::s_files = 0; uint ScanManager::s_files = 0;
ScanManager::ScanManager( TQObject *tqparent ) ScanManager::ScanManager( TQObject *parent )
: TQObject( tqparent ) : TQObject( parent )
, m_thread( 0 ) , m_thread( 0 )
, m_cache( new Chain<Directory> ) , m_cache( new Chain<Directory> )
{ {
@ -144,7 +144,7 @@ namespace Filelight
m_url = url; m_url = url;
TQApplication::setOverrideCursor( KCursor::workingCursor() ); TQApplication::setOverrideCursor( KCursor::workingCursor() );
//will start listing straight away //will start listing straight away
TQObject *o = new Filelight::RemoteLister( url, (TQWidget*)tqparent() ); TQObject *o = new Filelight::RemoteLister( url, (TQWidget*)parent() );
insertChild( o ); insertChild( o );
o->setName( "remote_lister" ); o->setName( "remote_lister" );
return true; return true;

@ -22,7 +22,7 @@ namespace Filelight
friend class RemoteLister; friend class RemoteLister;
public: public:
ScanManager( TQObject *tqparent ); ScanManager( TQObject *parent );
virtual ~ScanManager(); virtual ~ScanManager();
bool start( const KURL& ); bool start( const KURL& );

@ -18,8 +18,8 @@
#include "Config.h" #include "Config.h"
SettingsDialog::SettingsDialog( TQWidget *tqparent, const char *name ) SettingsDialog::SettingsDialog( TQWidget *parent, const char *name )
: Dialog( tqparent, name, false ) //3rd param => modal : Dialog( parent, name, false ) //3rd param => modal
{ {
colourSchemeGroup->setFrameShape( TQFrame::NoFrame ); colourSchemeGroup->setFrameShape( TQFrame::NoFrame );

@ -45,8 +45,8 @@ struct DiskList : TQValueList<Disk>
class MyRadialMap : public RadialMap::Widget class MyRadialMap : public RadialMap::Widget
{ {
public: public:
MyRadialMap( TQWidget *tqparent ) MyRadialMap( TQWidget *parent )
: RadialMap::Widget( tqparent ) : RadialMap::Widget( parent )
{} {}
virtual void setCursor( const TQCursor &c ) virtual void setCursor( const TQCursor &c )
@ -76,8 +76,8 @@ public:
SummaryWidget::SummaryWidget( TQWidget *tqparent, const char *name ) SummaryWidget::SummaryWidget( TQWidget *parent, const char *name )
: TQWidget( tqparent, name ) : TQWidget( parent, name )
{ {
tqApp->setOverrideCursor( KCursor::waitCursor() ); tqApp->setOverrideCursor( KCursor::waitCursor() );

@ -13,7 +13,7 @@ class SummaryWidget : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
SummaryWidget( TQWidget *tqparent, const char *name ); SummaryWidget( TQWidget *parent, const char *name );
~SummaryWidget(); ~SummaryWidget();
signals: signals:

Loading…
Cancel
Save