From 36a36a5c1015aa0d03f4515c401e907ddb9d6291 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/kdepim@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kaddressbook/features/distributionlistngwidget.cpp | 8 +++---- kaddressbook/features/distributionlistngwidget.h | 4 ++-- kaddressbook/features/distributionlistwidget.cpp | 28 +++++++++++----------- kaddressbook/features/distributionlistwidget.h | 8 +++---- kaddressbook/features/resourceselection.cpp | 16 ++++++------- kaddressbook/features/resourceselection.h | 2 +- 6 files changed, 33 insertions(+), 33 deletions(-) (limited to 'kaddressbook/features') diff --git a/kaddressbook/features/distributionlistngwidget.cpp b/kaddressbook/features/distributionlistngwidget.cpp index 1eac56b08..5a828ad1a 100644 --- a/kaddressbook/features/distributionlistngwidget.cpp +++ b/kaddressbook/features/distributionlistngwidget.cpp @@ -44,7 +44,7 @@ #include #include -KAB::DistributionListNg::ListBox::ListBox( TQWidget* tqparent ) : KListBox( tqparent ) +KAB::DistributionListNg::ListBox::ListBox( TQWidget* parent ) : KListBox( parent ) { setAcceptDrops( true ); } @@ -84,9 +84,9 @@ namespace DistributionListNg { class Factory : public KAB::ExtensionFactory { public: - KAB::ExtensionWidget *extension( KAB::Core *core, TQWidget *tqparent, const char *name ) + KAB::ExtensionWidget *extension( KAB::Core *core, TQWidget *parent, const char *name ) { - return new KAB::DistributionListNg::MainWidget( core, tqparent, name ); + return new KAB::DistributionListNg::MainWidget( core, parent, name ); } TQString identifier() const @@ -115,7 +115,7 @@ TQString KAB::DistributionListNg::MainWidget::identifier() const return "distribution_list_editor_ng"; } -KAB::DistributionListNg::MainWidget::MainWidget( KAB::Core *core, TQWidget *tqparent, const char *name ) : KAB::ExtensionWidget( core, tqparent, name ) +KAB::DistributionListNg::MainWidget::MainWidget( KAB::Core *core, TQWidget *parent, const char *name ) : KAB::ExtensionWidget( core, parent, name ) { TQVBoxLayout *tqlayout = new TQVBoxLayout( this ); tqlayout->setSpacing( KDialog::spacingHint() ); diff --git a/kaddressbook/features/distributionlistngwidget.h b/kaddressbook/features/distributionlistngwidget.h index 090fe0d50..aa6b9ddc0 100644 --- a/kaddressbook/features/distributionlistngwidget.h +++ b/kaddressbook/features/distributionlistngwidget.h @@ -49,7 +49,7 @@ class ListBox : public KListBox Q_OBJECT TQ_OBJECT public: - ListBox( TQWidget* tqparent = 0 ); + ListBox( TQWidget* parent = 0 ); signals: @@ -70,7 +70,7 @@ class MainWidget : public KAB::ExtensionWidget TQ_OBJECT public: - explicit MainWidget( KAB::Core *core, TQWidget *tqparent = 0, const char *name = 0 ); + explicit MainWidget( KAB::Core *core, TQWidget *parent = 0, const char *name = 0 ); //impl TQString title() const; diff --git a/kaddressbook/features/distributionlistwidget.cpp b/kaddressbook/features/distributionlistwidget.cpp index fc8af3abd..9001311d7 100644 --- a/kaddressbook/features/distributionlistwidget.cpp +++ b/kaddressbook/features/distributionlistwidget.cpp @@ -55,9 +55,9 @@ typedef KABC::DistributionList DistributionList; class DistributionListFactory : public KAB::ExtensionFactory { public: - KAB::ExtensionWidget *extension( KAB::Core *core, TQWidget *tqparent, const char *name ) + KAB::ExtensionWidget *extension( KAB::Core *core, TQWidget *parent, const char *name ) { - return new DistributionListWidget( core, tqparent, name ); + return new DistributionListWidget( core, parent, name ); } TQString identifier() const @@ -81,8 +81,8 @@ extern "C" { class DeletePressedCatcher : public TQObject { public: - DeletePressedCatcher( DistributionListWidget *tqparent ) - : TQObject( tqparent, "DeletePressedCatcher" ), mWidget( tqparent ) + DeletePressedCatcher( DistributionListWidget *parent ) + : TQObject( parent, "DeletePressedCatcher" ), mWidget( parent ) { } @@ -109,9 +109,9 @@ class DeletePressedCatcher : public TQObject class ContactItem : public TQListViewItem { public: - ContactItem( DistributionListView *tqparent, const KABC::Addressee &addressee, + ContactItem( DistributionListView *parent, const KABC::Addressee &addressee, const TQString &email = TQString() ) : - TQListViewItem( tqparent ), + TQListViewItem( parent ), mAddressee( addressee ), mEmail( email ) { @@ -146,9 +146,9 @@ class ContactItem : public TQListViewItem TQString mEmail; }; -DistributionListWidget::DistributionListWidget( KAB::Core *core, TQWidget *tqparent, +DistributionListWidget::DistributionListWidget( KAB::Core *core, TQWidget *parent, const char *name ) - : KAB::ExtensionWidget( core, tqparent, name ) + : KAB::ExtensionWidget( core, parent, name ) #ifndef KDEPIM_NEW_DISTRLISTS , mManager( 0 ) #endif @@ -590,8 +590,8 @@ void DistributionListWidget::changed() } #endif -DistributionListView::DistributionListView( TQWidget *tqparent, const char* name ) - : KListView( tqparent, name ) +DistributionListView::DistributionListView( TQWidget *parent, const char* name ) + : KListView( parent, name ) { setDragEnabled( true ); setAcceptDrops( true ); @@ -622,9 +622,9 @@ void DistributionListView::dropEvent( TQDropEvent *e ) EmailSelector::EmailSelector( const TQStringList &emails, - const TQString ¤t, TQWidget *tqparent ) + const TQString ¤t, TQWidget *parent ) : KDialogBase( KDialogBase::Plain, i18n("Select Email Address"), Ok|Cancel, Ok, - tqparent ) + parent ) { TQFrame *topFrame = plainPage(); TQBoxLayout *topLayout = new TQVBoxLayout( topFrame ); @@ -657,9 +657,9 @@ TQString EmailSelector::selected() const } TQString EmailSelector::getEmail( const TQStringList &emails, - const TQString ¤t, TQWidget *tqparent, bool &canceled ) + const TQString ¤t, TQWidget *parent, bool &canceled ) { - EmailSelector dlg( emails, current, tqparent ); + EmailSelector dlg( emails, current, parent ); if(dlg.exec()) { canceled = false; diff --git a/kaddressbook/features/distributionlistwidget.h b/kaddressbook/features/distributionlistwidget.h index 6890a6a72..7729b50d4 100644 --- a/kaddressbook/features/distributionlistwidget.h +++ b/kaddressbook/features/distributionlistwidget.h @@ -51,7 +51,7 @@ class DistributionListWidget : public KAB::ExtensionWidget TQ_OBJECT public: - DistributionListWidget( KAB::Core*, TQWidget *tqparent, const char *name = 0 ); + DistributionListWidget( KAB::Core*, TQWidget *parent, const char *name = 0 ); virtual ~DistributionListWidget(); void contactsSelectionChanged(); @@ -111,7 +111,7 @@ class DistributionListView : public KListView TQ_OBJECT public: - DistributionListView( TQWidget *tqparent, const char* name = 0 ); + DistributionListView( TQWidget *parent, const char* name = 0 ); protected: void dragEnterEvent( TQDragEnterEvent *e ); @@ -127,12 +127,12 @@ class EmailSelector : public KDialogBase { public: EmailSelector( const TQStringList &emails, const TQString ¤t, - TQWidget *tqparent ); + TQWidget *parent ); TQString selected() const; static TQString getEmail( const TQStringList &emails, const TQString ¤t, - TQWidget *tqparent, bool &canceled ); + TQWidget *parent, bool &canceled ); private: TQButtonGroup *mButtonGroup; diff --git a/kaddressbook/features/resourceselection.cpp b/kaddressbook/features/resourceselection.cpp index 0629052ab..6578b6e1e 100644 --- a/kaddressbook/features/resourceselection.cpp +++ b/kaddressbook/features/resourceselection.cpp @@ -57,8 +57,8 @@ class AddressBookWrapper : public KABC::AddressBook class ResourceItem : public TQCheckListItem { public: - ResourceItem( KListView *tqparent, KABC::Resource *resource ) - : TQCheckListItem( tqparent, resource->resourceName(), CheckBox ), + ResourceItem( KListView *parent, KABC::Resource *resource ) + : TQCheckListItem( parent, resource->resourceName(), CheckBox ), mResource( resource ), mChecked( false ), mIsSubresource( false ), mSubItemsCreated( false ), mResourceIdentifier() @@ -68,9 +68,9 @@ class ResourceItem : public TQCheckListItem mChecked = isOn(); } - ResourceItem( KPIM::ResourceABC *resourceABC, ResourceItem* tqparent, + ResourceItem( KPIM::ResourceABC *resourceABC, ResourceItem* parent, const TQString& resourceIdent ) - : TQCheckListItem( tqparent, resourceABC->subresourceLabel( resourceIdent ), CheckBox ), + : TQCheckListItem( parent, resourceABC->subresourceLabel( resourceIdent ), CheckBox ), mResource( resourceABC ), mChecked( false ), mIsSubresource( true ), mSubItemsCreated( false ), mResourceIdentifier( resourceIdent ) @@ -134,8 +134,8 @@ void ResourceItem::stateChange( bool active ) //// -ResourceSelection::ResourceSelection( KAB::Core *core, TQWidget *tqparent, const char *name ) - : KAB::ExtensionWidget( core, tqparent, name ), mManager( 0 ) +ResourceSelection::ResourceSelection( KAB::Core *core, TQWidget *parent, const char *name ) + : KAB::ExtensionWidget( core, parent, name ), mManager( 0 ) { initGUI(); @@ -520,9 +520,9 @@ void ResourceSelection::initGUI() class ResourceSelectionFactory : public KAB::ExtensionFactory { public: - KAB::ExtensionWidget *extension( KAB::Core *core, TQWidget *tqparent, const char *name ) + KAB::ExtensionWidget *extension( KAB::Core *core, TQWidget *parent, const char *name ) { - return new ResourceSelection( core, tqparent, name ); + return new ResourceSelection( core, parent, name ); } TQString identifier() const diff --git a/kaddressbook/features/resourceselection.h b/kaddressbook/features/resourceselection.h index e8939812b..609f942f2 100644 --- a/kaddressbook/features/resourceselection.h +++ b/kaddressbook/features/resourceselection.h @@ -41,7 +41,7 @@ class ResourceSelection : public KAB::ExtensionWidget TQ_OBJECT public: - ResourceSelection( KAB::Core*, TQWidget *tqparent, const char *name ); + ResourceSelection( KAB::Core*, TQWidget *parent, const char *name ); virtual ~ResourceSelection(); TQString title() const; -- cgit v1.2.1