From 6c79d50fa9fbdff7f69ca57a8ab5fcc942375593 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/kdewebdev@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- lib/compatibility/knewstuff/downloaddialog.cpp | 4 ++-- lib/compatibility/knewstuff/downloaddialog.h | 22 +++++++++++----------- lib/compatibility/knewstuff/engine.h | 8 ++++---- lib/compatibility/knewstuff/entry.cpp | 8 ++++---- lib/compatibility/knewstuff/entry.h | 4 ++-- lib/compatibility/knewstuff/knewstuff.cpp | 4 ++-- lib/compatibility/knewstuff/knewstuff.h | 8 ++++---- lib/compatibility/knewstuff/knewstuffgeneric.cpp | 4 ++-- lib/compatibility/knewstuff/knewstuffgeneric.h | 4 ++-- lib/compatibility/knewstuff/knewstuffsecure.h | 4 ++-- lib/compatibility/knewstuff/provider.cpp | 4 ++-- lib/compatibility/knewstuff/provider.h | 4 ++-- lib/compatibility/knewstuff/providerdialog.cpp | 8 ++++---- lib/compatibility/knewstuff/providerdialog.h | 4 ++-- lib/compatibility/knewstuff/uploaddialog.cpp | 4 ++-- lib/compatibility/knewstuff/uploaddialog.h | 4 ++-- 16 files changed, 49 insertions(+), 49 deletions(-) (limited to 'lib/compatibility/knewstuff') diff --git a/lib/compatibility/knewstuff/downloaddialog.cpp b/lib/compatibility/knewstuff/downloaddialog.cpp index 581263e2..ec008059 100644 --- a/lib/compatibility/knewstuff/downloaddialog.cpp +++ b/lib/compatibility/knewstuff/downloaddialog.cpp @@ -49,8 +49,8 @@ using namespace KNS; class NumSortListViewItem : public KListViewItem { public: - NumSortListViewItem( TQListView * tqparent, TQString label1, TQString label2 = TQString(), TQString label3 = TQString(), TQString label4 = TQString(), TQString label5 = TQString(), TQString label6 = TQString(), TQString label7 = TQString(), TQString label8 = TQString() ) : - KListViewItem( tqparent, label1, label2, label3, label4, label5, label6, label7, label8 ) + NumSortListViewItem( TQListView * parent, TQString label1, TQString label2 = TQString(), TQString label3 = TQString(), TQString label4 = TQString(), TQString label5 = TQString(), TQString label6 = TQString(), TQString label7 = TQString(), TQString label8 = TQString() ) : + KListViewItem( parent, label1, label2, label3, label4, label5, label6, label7, label8 ) { } diff --git a/lib/compatibility/knewstuff/downloaddialog.h b/lib/compatibility/knewstuff/downloaddialog.h index eea67f6e..b5c1de0a 100644 --- a/lib/compatibility/knewstuff/downloaddialog.h +++ b/lib/compatibility/knewstuff/downloaddialog.h @@ -64,19 +64,19 @@ class KDE_EXPORT DownloadDialog : public KDialogBase @param engine a pre-built engine object, or NULL if the download dialog should create an engine on its own - @param tqparent the tqparent window + @param parent the parent window @param caption the dialog caption */ - DownloadDialog(Engine *engine, TQWidget *tqparent, const TQString& caption); + DownloadDialog(Engine *engine, TQWidget *parent, const TQString& caption); /** Alternative constructor. Always uses an internal engine. - @param tqparent the tqparent window + @param parent the parent window @param caption the dialog caption */ - DownloadDialog(TQWidget *tqparent, const TQString& caption); + DownloadDialog(TQWidget *parent, const TQString& caption); /** Destructor. @@ -155,19 +155,19 @@ class KDE_EXPORT DownloadDialog : public KDialogBase @param engine a pre-built engine object, or NULL if the download dialog should create an engine on its own - @param tqparent the tqparent window + @param parent the parent window */ - DownloadDialog(Engine *engine, TQWidget *tqparent = 0); - // ### KDE 4.0: remove and make caption/tqparent argument optional + DownloadDialog(Engine *engine, TQWidget *parent = 0); + // ### KDE 4.0: remove and make caption/parent argument optional /** Alternative constructor. Always uses an internal engine. - @param tqparent the tqparent window + @param parent the parent window */ - DownloadDialog(TQWidget *tqparent = 0); - // ### KDE 4.0: remove and make caption/tqparent argument optional + DownloadDialog(TQWidget *parent = 0); + // ### KDE 4.0: remove and make caption/parent argument optional /** Opens the download dialog. @@ -178,7 +178,7 @@ class KDE_EXPORT DownloadDialog : public KDialogBase @param type a data type such as "korganizer/calendar" */ static void open(TQString type); - // ### KDE 4.0: remove and make caption/tqparent argument optional + // ### KDE 4.0: remove and make caption/parent argument optional public slots: /** diff --git a/lib/compatibility/knewstuff/engine.h b/lib/compatibility/knewstuff/engine.h index 4f77daa5..31be3f9f 100644 --- a/lib/compatibility/knewstuff/engine.h +++ b/lib/compatibility/knewstuff/engine.h @@ -58,7 +58,7 @@ class Engine : public TQObject @param newStuff a KNewStuff object @param type the Hotstuff data type such as "korganizer/calendar" - @param parentWidget the tqparent window + @param parentWidget the parent window */ Engine( KNewStuff *newStuff, const TQString &type, TQWidget *parentWidget = 0 ); /** @@ -67,7 +67,7 @@ class Engine : public TQObject @param newStuff a KNewStuff object @param type the Hotstuff data type such as "korganizer/calendar" @param providerList the URL of the provider list - @param parentWidget the tqparent window + @param parentWidget the parent window */ Engine( KNewStuff *newStuff, const TQString &type, const TQString &providerList, TQWidget *parentWidget = 0 ); @@ -84,9 +84,9 @@ class Engine : public TQObject TQString type() const { return mType; } /** - Returns the previously set tqparent widget. + Returns the previously set parent widget. - @return tqparent widget + @return parent widget */ TQWidget *parentWidget() const { return mParentWidget; } diff --git a/lib/compatibility/knewstuff/entry.cpp b/lib/compatibility/knewstuff/entry.cpp index ba08f345..0f3b98b4 100644 --- a/lib/compatibility/knewstuff/entry.cpp +++ b/lib/compatibility/knewstuff/entry.cpp @@ -252,11 +252,11 @@ void Entry::parseDomElement( const TQDomElement &element ) } TQDomElement Entry::createDomElement( TQDomDocument &doc, - TQDomElement &tqparent ) + TQDomElement &parent ) { TQDomElement entry = doc.createElement( "stuff" ); entry.setAttribute("type", mType); - tqparent.appendChild( entry ); + parent.appendChild( entry ); addElement( doc, entry, "name", name() ); addElement( doc, entry, "author", author() ); @@ -283,12 +283,12 @@ TQDomElement Entry::createDomElement( TQDomDocument &doc, return entry; } -TQDomElement Entry::addElement( TQDomDocument &doc, TQDomElement &tqparent, +TQDomElement Entry::addElement( TQDomDocument &doc, TQDomElement &parent, const TQString &tag, const TQString &value ) { TQDomElement n = doc.createElement( tag ); n.appendChild( doc.createTextNode( value ) ); - tqparent.appendChild( n ); + parent.appendChild( n ); return n; } diff --git a/lib/compatibility/knewstuff/entry.h b/lib/compatibility/knewstuff/entry.h index 3de9982c..8f583ecc 100644 --- a/lib/compatibility/knewstuff/entry.h +++ b/lib/compatibility/knewstuff/entry.h @@ -229,10 +229,10 @@ class KDE_EXPORT Entry /** * @internal */ - TQDomElement createDomElement( TQDomDocument &, TQDomElement &tqparent ); + TQDomElement createDomElement( TQDomDocument &, TQDomElement &parent ); protected: - TQDomElement addElement( TQDomDocument &doc, TQDomElement &tqparent, + TQDomElement addElement( TQDomDocument &doc, TQDomElement &parent, const TQString &tag, const TQString &value ); private: diff --git a/lib/compatibility/knewstuff/knewstuff.cpp b/lib/compatibility/knewstuff/knewstuff.cpp index 0dfad89e..7fa15372 100644 --- a/lib/compatibility/knewstuff/knewstuff.cpp +++ b/lib/compatibility/knewstuff/knewstuff.cpp @@ -32,11 +32,11 @@ using namespace KNS; KAction* KNS::standardAction(const TQString& what, const TQObject *recvr, - const char *slot, KActionCollection* tqparent, + const char *slot, KActionCollection* parent, const char *name) { return new KAction(i18n("Download New %1").tqarg(what), "knewstuff", - 0, recvr, slot, tqparent, name); + 0, recvr, slot, parent, name); } KNewStuff::KNewStuff( const TQString &type, TQWidget *parentWidget ) diff --git a/lib/compatibility/knewstuff/knewstuff.h b/lib/compatibility/knewstuff/knewstuff.h index 392f90f0..455063a3 100644 --- a/lib/compatibility/knewstuff/knewstuff.h +++ b/lib/compatibility/knewstuff/knewstuff.h @@ -36,7 +36,7 @@ class Entry; KAction* standardAction(const TQString& what, const TQObject *recvr, const char *slot, - KActionCollection* tqparent, + KActionCollection* parent, const char *name = 0); } @@ -74,7 +74,7 @@ class KDE_EXPORT KNewStuff @param type type of data to be handled, should be something like korganizer/calendar, kword/template, kdesktop/wallpaper - @param parentWidget tqparent widget of dialogs opened by the KNewStuff + @param parentWidget parent widget of dialogs opened by the KNewStuff engine */ KNewStuff( const TQString &type, TQWidget *parentWidget = 0 ); @@ -85,7 +85,7 @@ class KDE_EXPORT KNewStuff @param type type of data to be handled, should be something like korganizer/calendar, kword/template, kdesktop/wallpaper @param providerList the URL of the provider list - @param parentWidget tqparent widget of dialogs opened by the KNewStuff + @param parentWidget parent widget of dialogs opened by the KNewStuff engine */ KNewStuff( const TQString &type, const TQString &providerList, TQWidget *parentWidget = 0 ); @@ -97,7 +97,7 @@ class KDE_EXPORT KNewStuff TQString type() const; /** - Return tqparent widget. + Return parent widget. */ TQWidget *parentWidget() const; diff --git a/lib/compatibility/knewstuff/knewstuffgeneric.cpp b/lib/compatibility/knewstuff/knewstuffgeneric.cpp index 66878137..c7b4b855 100644 --- a/lib/compatibility/knewstuff/knewstuffgeneric.cpp +++ b/lib/compatibility/knewstuff/knewstuffgeneric.cpp @@ -37,8 +37,8 @@ using namespace std; -KNewStuffGeneric::KNewStuffGeneric( const TQString &type, TQWidget *tqparent ) - : KNewStuff( type, tqparent ) +KNewStuffGeneric::KNewStuffGeneric( const TQString &type, TQWidget *parent ) + : KNewStuff( type, parent ) { mConfig = KGlobal::config(); } diff --git a/lib/compatibility/knewstuff/knewstuffgeneric.h b/lib/compatibility/knewstuff/knewstuffgeneric.h index fb75323f..6347bf53 100644 --- a/lib/compatibility/knewstuff/knewstuffgeneric.h +++ b/lib/compatibility/knewstuff/knewstuffgeneric.h @@ -46,9 +46,9 @@ class KDE_EXPORT KNewStuffGeneric : public KNewStuff Constructor. @param type a Hotstuff data type such as "korganizer/calendar" - @param tqparent the tqparent window. + @param parent the parent window. */ - KNewStuffGeneric( const TQString &type, TQWidget *tqparent = 0 ); + KNewStuffGeneric( const TQString &type, TQWidget *parent = 0 ); ~KNewStuffGeneric(); /** diff --git a/lib/compatibility/knewstuff/knewstuffsecure.h b/lib/compatibility/knewstuff/knewstuffsecure.h index 9e725e0b..4195139c 100644 --- a/lib/compatibility/knewstuff/knewstuffsecure.h +++ b/lib/compatibility/knewstuff/knewstuffsecure.h @@ -47,7 +47,7 @@ public: @param type type of data to be handled, should be something like korganizer/calendar, kword/template, kdesktop/wallpaper - @param parentWidget tqparent widget of dialogs opened by the KNewStuff + @param parentWidget parent widget of dialogs opened by the KNewStuff engine */ KNewStuffSecure(const TQString &type, TQWidget *parentWidget=0); @@ -79,7 +79,7 @@ private slots: /** Called when the upload has finished. @param result the result of the upload Be careful if you reimplement it, as it deletes the temporary directory - m_tempDir used for upload. You must also delete it (call the tqparent's method) + m_tempDir used for upload. You must also delete it (call the parent's method) if you reimplement it. */ void slotUploadFinished(bool result); diff --git a/lib/compatibility/knewstuff/provider.cpp b/lib/compatibility/knewstuff/provider.cpp index 65660cc4..ca7767e0 100644 --- a/lib/compatibility/knewstuff/provider.cpp +++ b/lib/compatibility/knewstuff/provider.cpp @@ -128,10 +128,10 @@ void Provider::parseDomElement( const TQDomElement &element ) } } -TQDomElement Provider::createDomElement( TQDomDocument &doc, TQDomElement &tqparent ) +TQDomElement Provider::createDomElement( TQDomDocument &doc, TQDomElement &parent ) { TQDomElement entry = doc.createElement( "stuff" ); - tqparent.appendChild( entry ); + parent.appendChild( entry ); TQDomElement n = doc.createElement( "name" ); n.appendChild( doc.createTextNode( name() ) ); diff --git a/lib/compatibility/knewstuff/provider.h b/lib/compatibility/knewstuff/provider.h index c41a9afb..680cec4e 100644 --- a/lib/compatibility/knewstuff/provider.h +++ b/lib/compatibility/knewstuff/provider.h @@ -144,7 +144,7 @@ class Provider protected: void parseDomElement( const TQDomElement & ); - TQDomElement createDomElement( TQDomDocument &, TQDomElement &tqparent ); + TQDomElement createDomElement( TQDomDocument &, TQDomElement &parent ); private: TQString mName; @@ -169,7 +169,7 @@ class ProviderLoader : public TQObject /** * Constructor. * - * @param parentWidget the tqparent widget + * @param parentWidget the parent widget */ ProviderLoader( TQWidget *parentWidget ); diff --git a/lib/compatibility/knewstuff/providerdialog.cpp b/lib/compatibility/knewstuff/providerdialog.cpp index 97694a34..a6625870 100644 --- a/lib/compatibility/knewstuff/providerdialog.cpp +++ b/lib/compatibility/knewstuff/providerdialog.cpp @@ -37,8 +37,8 @@ using namespace KNS; class ProviderItem : public KListViewItem { public: - ProviderItem( KListView *tqparent, Provider *provider ) : - KListViewItem( tqparent ), mProvider( provider ) + ProviderItem( KListView *parent, Provider *provider ) : + KListViewItem( parent ), mProvider( provider ) { setText( 0, provider->name() ); } @@ -49,9 +49,9 @@ class ProviderItem : public KListViewItem Provider *mProvider; }; -ProviderDialog::ProviderDialog( Engine *engine, TQWidget *tqparent ) : +ProviderDialog::ProviderDialog( Engine *engine, TQWidget *parent ) : KDialogBase( Plain, i18n("Hot New Stuff Providers"), Ok | Cancel, Cancel, - tqparent, 0, false, true ), + parent, 0, false, true ), mEngine( engine ) { TQFrame *topPage = plainPage(); diff --git a/lib/compatibility/knewstuff/providerdialog.h b/lib/compatibility/knewstuff/providerdialog.h index 7a9f8884..6ab903bd 100644 --- a/lib/compatibility/knewstuff/providerdialog.h +++ b/lib/compatibility/knewstuff/providerdialog.h @@ -49,9 +49,9 @@ class ProviderDialog : public KDialogBase Constructor. @param engine a KNewStuff engine object - @param tqparent the tqparent window + @param parent the parent window */ - ProviderDialog( Engine *engine, TQWidget *tqparent ); + ProviderDialog( Engine *engine, TQWidget *parent ); /** Clears the list of providers. diff --git a/lib/compatibility/knewstuff/uploaddialog.cpp b/lib/compatibility/knewstuff/uploaddialog.cpp index 9e63386b..4eaed4aa 100644 --- a/lib/compatibility/knewstuff/uploaddialog.cpp +++ b/lib/compatibility/knewstuff/uploaddialog.cpp @@ -42,9 +42,9 @@ using namespace KNS; -UploadDialog::UploadDialog( Engine *engine, TQWidget *tqparent ) : +UploadDialog::UploadDialog( Engine *engine, TQWidget *parent ) : KDialogBase( Plain, i18n("Share Hot New Stuff"), Ok | Cancel, Cancel, - tqparent, 0, false, true ), + parent, 0, false, true ), mEngine( engine ) { mEntryList.setAutoDelete( true ); diff --git a/lib/compatibility/knewstuff/uploaddialog.h b/lib/compatibility/knewstuff/uploaddialog.h index 5d7f0e68..623f689c 100644 --- a/lib/compatibility/knewstuff/uploaddialog.h +++ b/lib/compatibility/knewstuff/uploaddialog.h @@ -53,9 +53,9 @@ class UploadDialog : public KDialogBase Constructor. @param engine a KNewStuff engine object to be used for uploads - @param tqparent the tqparent window + @param parent the parent window */ - UploadDialog( Engine *engine, TQWidget *tqparent ); + UploadDialog( Engine *engine, TQWidget *parent ); /** Destructor. -- cgit v1.2.1