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 13 years ago
parent 649f3d48bf
commit 1d9d6c097a

@ -40,8 +40,8 @@ HistoryAction::pop()
HistoryCollection::HistoryCollection( KActionCollection *ac, TQObject *tqparent, const char *name )
: TQObject( tqparent, name )
HistoryCollection::HistoryCollection( KActionCollection *ac, TQObject *parent, const char *name )
: TQObject( parent, name )
, 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_receiver( 0 )

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

@ -20,7 +20,7 @@ File::fullPath( const Directory *root /*= 0*/ ) const
if( root == this )
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() );
return path;

@ -168,7 +168,7 @@ public:
File( const char *name, FileSize size ) : m_parent( 0 ), m_name( qstrdup( name ) ), m_size( size ) {}
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 FileSize size() const { return m_size; }
TQString name() const { return TQFile::decodeName( m_name ); }
@ -182,7 +182,7 @@ public:
static TQString humanReadableSize( uint size, UnitPrefix Key = mega );
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
char *m_name;

@ -22,11 +22,11 @@ namespace Filelight
TQStringList LocalLister::s_remoteMounts;
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()
, m_path( path )
, m_trees( cachedTrees )
, m_parent( tqparent )
, m_parent( parent )
{
//add empty directories for any mount points that are in the path
//TODO empty directories is not ideal as adds to fileCount incorrectly

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

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

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

@ -80,7 +80,7 @@ RadialMap::Widget::paintExplodedLabels( TQPainter &paint ) const
//find the range of levels we will be potentially drawing labels for
//startLevel is the level above whatever m_focus is in
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

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

@ -131,7 +131,7 @@ RadialMap::Widget::mouseMoveEvent( TQMouseEvent *e )
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 )
{

@ -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();

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

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

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

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

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

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

Loading…
Cancel
Save