From db9d51186b28bc2252032458b433ba5f8d1972bc 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/kdelibs@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kio/kfile/kopenwith.cpp | 2 +- kio/kio/kmimetypechooser.cpp | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'kio') diff --git a/kio/kfile/kopenwith.cpp b/kio/kfile/kopenwith.cpp index 1822a0fc7..e5754cefb 100644 --- a/kio/kfile/kopenwith.cpp +++ b/kio/kfile/kopenwith.cpp @@ -131,7 +131,7 @@ void KAppTreeListItem::activate() void KAppTreeListItem::setOpen( bool o ) { if( o && !parsed ) { // fill the children before opening - ((KApplicationTree *) tqparent())->addDesktopGroup( path, this ); + ((KApplicationTree *) parent())->addDesktopGroup( path, this ); parsed = true; } TQListViewItem::setOpen( o ); diff --git a/kio/kio/kmimetypechooser.cpp b/kio/kio/kmimetypechooser.cpp index f55b17caf..c9cdf9a06 100644 --- a/kio/kio/kmimetypechooser.cpp +++ b/kio/kio/kmimetypechooser.cpp @@ -189,9 +189,9 @@ void KMimeTypeChooser::loadMimeTypes( const TQStringList &_selectedMimeTypes ) void KMimeTypeChooser::editMimeType() { - if ( !(d->lvMimeTypes->currentItem() && (d->lvMimeTypes->currentItem())->tqparent()) ) + if ( !(d->lvMimeTypes->currentItem() && (d->lvMimeTypes->currentItem())->parent()) ) return; - TQString mt = (d->lvMimeTypes->currentItem()->tqparent())->text( 0 ) + "/" + (d->lvMimeTypes->currentItem())->text( 0 ); + TQString mt = (d->lvMimeTypes->currentItem()->parent())->text( 0 ) + "/" + (d->lvMimeTypes->currentItem())->text( 0 ); // thanks to libkonq/konq_operations.cc connect( KSycoca::self(), TQT_SIGNAL(databaseChanged()), this, TQT_SLOT(slotSycocaDatabaseChanged()) ); @@ -205,7 +205,7 @@ void KMimeTypeChooser::editMimeType() void KMimeTypeChooser::slotCurrentChanged(TQListViewItem* i) { if ( d->btnEditMimeType ) - d->btnEditMimeType->setEnabled( i->tqparent() ); + d->btnEditMimeType->setEnabled( i->parent() ); } void KMimeTypeChooser::slotSycocaDatabaseChanged() @@ -220,8 +220,8 @@ TQStringList KMimeTypeChooser::mimeTypes() const TQListViewItemIterator it( d->lvMimeTypes ); for (; it.current(); ++it) { - if ( it.current()->tqparent() && ((TQCheckListItem*)it.current())->isOn() ) - l << it.current()->tqparent()->text(0) + "/" + it.current()->text(0); // FIXME uncecked, should be Ok unless someone changes mimetypes during this! + if ( it.current()->parent() && ((TQCheckListItem*)it.current())->isOn() ) + l << it.current()->parent()->text(0) + "/" + it.current()->text(0); // FIXME uncecked, should be Ok unless someone changes mimetypes during this! } return l; } @@ -234,9 +234,9 @@ TQStringList KMimeTypeChooser::patterns() const TQListViewItemIterator it( d->lvMimeTypes ); for (; it.current(); ++it) { - if ( it.current()->tqparent() && ((TQCheckListItem*)it.current())->isOn() ) + if ( it.current()->parent() && ((TQCheckListItem*)it.current())->isOn() ) { - p = KMimeType::mimeType( it.current()->tqparent()->text(0) + "/" + it.current()->text(0) ); + p = KMimeType::mimeType( it.current()->parent()->text(0) + "/" + it.current()->text(0) ); if ( p->name() != defMT ) l += p->patterns(); } -- cgit v1.2.1