From 90363652674deb94cd07057428b24fcb1735dbce 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/kdeaddons@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- konq-plugins/babelfish/plugin_babelfish.cpp | 18 +++++++++--------- konq-plugins/babelfish/plugin_babelfish.h | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'konq-plugins/babelfish') diff --git a/konq-plugins/babelfish/plugin_babelfish.cpp b/konq-plugins/babelfish/plugin_babelfish.cpp index bf2e7da..4d1a61b 100644 --- a/konq-plugins/babelfish/plugin_babelfish.cpp +++ b/konq-plugins/babelfish/plugin_babelfish.cpp @@ -34,9 +34,9 @@ typedef KGenericFactory BabelFishFactory; static const KAboutData aboutdata("babelfish", I18N_NOOP("Translate Web Page") , "1.0" ); K_EXPORT_COMPONENT_FACTORY( libbabelfishplugin, BabelFishFactory( &aboutdata ) ) -PluginBabelFish::PluginBabelFish( TQObject* tqparent, const char* name, +PluginBabelFish::PluginBabelFish( TQObject* parent, const char* name, const TQStringList & ) - : Plugin( tqparent, name ) + : Plugin( parent, name ) { setInstance(BabelFishFactory::instance()); @@ -178,9 +178,9 @@ PluginBabelFish::PluginBabelFish( TQObject* tqparent, const char* name, m_menu->setEnabled( true ); // TODO: we could also support plain text viewers... - if ( tqparent && tqparent->inherits( "KHTMLPart" ) ) + if ( parent && parent->inherits( "KHTMLPart" ) ) { - KParts::ReadOnlyPart* part = static_cast(tqparent); + KParts::ReadOnlyPart* part = static_cast(parent); connect( part, TQT_SIGNAL(started(KIO::Job*)), this, TQT_SLOT(slotStarted(KIO::Job*)) ); } @@ -193,9 +193,9 @@ PluginBabelFish::~PluginBabelFish() void PluginBabelFish::slotStarted( KIO::Job* ) { - if ( tqparent()->inherits("KHTMLPart") && + if ( parent()->inherits("KHTMLPart") && // Babelfish wants http URLs only. No https. - static_cast(tqparent())->url().protocol().lower() == "http" ) + static_cast(parent())->url().protocol().lower() == "http" ) { m_menu->setEnabled( true ); } @@ -211,8 +211,8 @@ void PluginBabelFish::translateURL() if ( !sender() ) return; - // The tqparent is assumed to be a KHTMLPart - if ( !tqparent()->inherits("KHTMLPart") ) + // The parent is assumed to be a KHTMLPart + if ( !parent()->inherits("KHTMLPart") ) { TQString title = i18n( "Cannot Translate Source" ); TQString text = i18n( "Only web pages can be translated using " @@ -227,7 +227,7 @@ void PluginBabelFish::translateURL() TQString engine = cfg.readEntry( TQT_TQOBJECT(const_cast(sender()))->name(), "babelfish" ); // Get URL - KHTMLPart *part = dynamic_cast(tqparent()); + KHTMLPart *part = dynamic_cast(parent()); if ( !part ) return; diff --git a/konq-plugins/babelfish/plugin_babelfish.h b/konq-plugins/babelfish/plugin_babelfish.h index 98efe04..af7bb01 100644 --- a/konq-plugins/babelfish/plugin_babelfish.h +++ b/konq-plugins/babelfish/plugin_babelfish.h @@ -30,7 +30,7 @@ class PluginBabelFish : public KParts::Plugin Q_OBJECT TQ_OBJECT public: - PluginBabelFish( TQObject* tqparent, const char* name, + PluginBabelFish( TQObject* parent, const char* name, const TQStringList & ); virtual ~PluginBabelFish(); -- cgit v1.2.1