summaryrefslogtreecommitdiffstats
path: root/libkdepim/addressesdialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit36a36a5c1015aa0d03f4515c401e907ddb9d6291 (patch)
tree0212ba6d2c749043134005a41f2bd0379619d40f /libkdepim/addressesdialog.cpp
parent4c6f8d69e2d1501837affb472c4eb8fec4462240 (diff)
downloadtdepim-36a36a5c1015aa0d03f4515c401e907ddb9d6291.tar.gz
tdepim-36a36a5c1015aa0d03f4515c401e907ddb9d6291.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdepim/addressesdialog.cpp')
-rw-r--r--libkdepim/addressesdialog.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/libkdepim/addressesdialog.cpp b/libkdepim/addressesdialog.cpp
index d73ab63f8..8efadd400 100644
--- a/libkdepim/addressesdialog.cpp
+++ b/libkdepim/addressesdialog.cpp
@@ -91,9 +91,9 @@ struct AddressesDialog::AddressesDialogPrivate {
};
// privates end
-AddresseeViewItem::AddresseeViewItem( AddresseeViewItem *tqparent, const KABC::Addressee& addr,
+AddresseeViewItem::AddresseeViewItem( AddresseeViewItem *parent, const KABC::Addressee& addr,
int emailIndex )
- : TQObject( 0 ), KListViewItem( tqparent, addr.realName(),
+ : TQObject( 0 ), KListViewItem( parent, addr.realName(),
( emailIndex == 0 ? addr.preferredEmail() : addr.emails()[ emailIndex ] ) )
{
d = new AddresseeViewItemPrivate;
@@ -120,17 +120,17 @@ AddresseeViewItem::AddresseeViewItem( KListView *lv, const TQString& name, Categ
d->category = cat;
}
-AddresseeViewItem::AddresseeViewItem( AddresseeViewItem *tqparent, const TQString& name,
+AddresseeViewItem::AddresseeViewItem( AddresseeViewItem *parent, const TQString& name,
const KABC::Addressee::List &lst )
- : TQObject(0), KListViewItem( tqparent, name, i18n("<group>") )
+ : TQObject(0), KListViewItem( parent, name, i18n("<group>") )
{
d = new AddresseeViewItemPrivate;
d->category = FilledGroup;
d->addresses = lst;
}
-AddresseeViewItem::AddresseeViewItem( AddresseeViewItem *tqparent, const TQString& name )
- : TQObject(0), KListViewItem( tqparent, name, i18n("<group>") )
+AddresseeViewItem::AddresseeViewItem( AddresseeViewItem *parent, const TQString& name )
+ : TQObject(0), KListViewItem( parent, name, i18n("<group>") )
{
d = new AddresseeViewItemPrivate;
d->category = DistList;
@@ -544,12 +544,12 @@ AddressesDialog::availableAddressSelected( AddresseeViewItem* item, bool selecte
void
AddressesDialog::selectedAddressSelected( AddresseeViewItem* item, bool selected )
{
- // we have to avoid that a tqparent and a child is selected together
+ // we have to avoid that a parent and a child is selected together
// because in this case we get a double object deletion ( program crashes )
// when removing the selected items from list
- AddresseeViewItem* tqparent = static_cast<AddresseeViewItem*>(((TQListViewItem*)item)->tqparent());
- if ( tqparent && selected )
- tqparent->setSelected( false );
+ AddresseeViewItem* parent = static_cast<AddresseeViewItem*>(((TQListViewItem*)item)->parent());
+ if ( parent && selected )
+ parent->setSelected( false );
if (selected)
{
selectedSelectedAddresses.append(item);
@@ -662,10 +662,10 @@ AddressesDialog::addAddresseeToSelected( const KABC::Addressee& addr, AddresseeV
}
void
-AddressesDialog::addAddresseesToSelected( AddresseeViewItem *tqparent,
+AddressesDialog::addAddresseesToSelected( AddresseeViewItem *parent,
const TQPtrList<AddresseeViewItem>& addresses )
{
- Q_ASSERT( tqparent );
+ Q_ASSERT( parent );
TQPtrListIterator<AddresseeViewItem> itr( addresses );
@@ -686,15 +686,15 @@ AddressesDialog::addAddresseesToSelected( AddresseeViewItem *tqparent,
AddresseeViewItem* newItem = 0;
if (address->category() == AddresseeViewItem::Entry)
{
- newItem = new AddresseeViewItem( tqparent, address->addressee() );
+ newItem = new AddresseeViewItem( parent, address->addressee() );
}
else if (address->category() == AddresseeViewItem::DistList)
{
- newItem = new AddresseeViewItem( tqparent, address->name() );
+ newItem = new AddresseeViewItem( parent, address->name() );
}
else
{
- newItem = new AddresseeViewItem( tqparent, address->name(), allAddressee( address ) );
+ newItem = new AddresseeViewItem( parent, address->name(), allAddressee( address ) );
}
address->setSelected( false );
@@ -705,7 +705,7 @@ AddressesDialog::addAddresseesToSelected( AddresseeViewItem *tqparent,
this, TQT_SLOT(selectedAddressSelected(AddresseeViewItem*, bool)));
}
- tqparent->setOpen( true );
+ parent->setOpen( true );
}
TQStringList
@@ -819,7 +819,7 @@ AddressesDialog::removeEntry()
resetCC = true;
else if( d->bccItem == item )
resetBCC = true;
- // we may only append tqparent items
+ // we may only append parent items
unmapSelectedAddress(item);
lst.append( item );
}
@@ -854,7 +854,7 @@ AddressesDialog::removeEntry()
// copied from kabcore.cpp :(
// KDE4: should be in libkabc I think
-static KABC::Resource *requestResource( KABC::AddressBook* abook, TQWidget *tqparent )
+static KABC::Resource *requestResource( KABC::AddressBook* abook, TQWidget *parent )
{
TQPtrList<KABC::Resource> kabcResources = abook->resources();
@@ -870,7 +870,7 @@ static KABC::Resource *requestResource( KABC::AddressBook* abook, TQWidget *tqpa
}
}
- KRES::Resource *res = KRES::SelectDialog::getResource( kresResources, tqparent );
+ KRES::Resource *res = KRES::SelectDialog::getResource( kresResources, parent );
return static_cast<KABC::Resource*>( res );
}
#endif
@@ -1002,11 +1002,11 @@ AddressesDialog::filterChanged( const TQString& txt )
if ( item->category() == AddresseeViewItem::Entry ) {
bool matches = item->matches( txt );
item->setVisible( matches );
- TQListViewItem *tqparent = static_cast<TQListViewItem*>( item )->tqparent();
- if ( matches && tqparent ) {
- if ( tqparent == d->personal ) {
+ TQListViewItem *parent = static_cast<TQListViewItem*>( item )->parent();
+ if ( matches && parent ) {
+ if ( parent == d->personal ) {
personalVisible++;
- } else if ( tqparent == d->recent ) {
+ } else if ( parent == d->recent ) {
recentVisible++;
}
}
@@ -1087,19 +1087,19 @@ AddressesDialog::allAddressee( KListView* view, bool onlySelected ) const
}
KABC::Addressee::List
-AddressesDialog::allAddressee( AddresseeViewItem* tqparent ) const
+AddressesDialog::allAddressee( AddresseeViewItem* parent ) const
{
KABC::Addressee::List lst;
- if ( !tqparent ) return lst;
+ if ( !parent ) return lst;
- if ( tqparent->category() == AddresseeViewItem::Entry )
+ if ( parent->category() == AddresseeViewItem::Entry )
{
- lst.append( tqparent->addressee() );
+ lst.append( parent->addressee() );
return lst;
}
- AddresseeViewItem *myChild = static_cast<AddresseeViewItem*>( tqparent->firstChild() );
+ AddresseeViewItem *myChild = static_cast<AddresseeViewItem*>( parent->firstChild() );
while( myChild ) {
if ( myChild->category() == AddresseeViewItem::FilledGroup )
lst += myChild->addresses();
@@ -1112,14 +1112,14 @@ AddressesDialog::allAddressee( AddresseeViewItem* tqparent ) const
}
TQStringList
-AddressesDialog::allDistributionLists( AddresseeViewItem* tqparent ) const
+AddressesDialog::allDistributionLists( AddresseeViewItem* parent ) const
{
TQStringList lists;
- if ( !tqparent )
+ if ( !parent )
return TQStringList();
- AddresseeViewItem *item = static_cast<AddresseeViewItem*>( tqparent->firstChild() );
+ AddresseeViewItem *item = static_cast<AddresseeViewItem*>( parent->firstChild() );
while ( item ) {
if ( item->category() == AddresseeViewItem::DistList && !item->name().isEmpty() )
lists.append( item->name() );