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 --- .../khtmlsettingsplugin/settingsplugin.cpp | 28 +++++++++++----------- konq-plugins/khtmlsettingsplugin/settingsplugin.h | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) (limited to 'konq-plugins/khtmlsettingsplugin') diff --git a/konq-plugins/khtmlsettingsplugin/settingsplugin.cpp b/konq-plugins/khtmlsettingsplugin/settingsplugin.cpp index 3d52c5b..d9f5219 100644 --- a/konq-plugins/khtmlsettingsplugin/settingsplugin.cpp +++ b/konq-plugins/khtmlsettingsplugin/settingsplugin.cpp @@ -39,9 +39,9 @@ static const KAboutData aboutdata("khtmlsettingsplugin", I18N_NOOP("HTML Setting K_EXPORT_COMPONENT_FACTORY( libkhtmlsettingsplugin, SettingsPluginFactory( &aboutdata ) ) -SettingsPlugin::SettingsPlugin( TQObject* tqparent, const char* name, +SettingsPlugin::SettingsPlugin( TQObject* parent, const char* name, const TQStringList & ) - : KParts::Plugin( tqparent, name ), mConfig(0) + : KParts::Plugin( parent, name ), mConfig(0) { setInstance(SettingsPluginFactory::instance()); @@ -118,13 +118,13 @@ SettingsPlugin::~SettingsPlugin() void SettingsPlugin::showPopup() { - if( !tqparent() || !tqparent()->inherits("KHTMLPart")) + if( !parent() || !parent()->inherits("KHTMLPart")) return; if (!mConfig) mConfig = new KConfig("settingspluginrc", false, false); - KHTMLPart *part = static_cast( tqparent() ); + KHTMLPart *part = static_cast( parent() ); KProtocolManager::reparseConfiguration(); bool cookies = cookiesEnabled( part->url().url() ); @@ -159,28 +159,28 @@ void SettingsPlugin::showPopup() void SettingsPlugin::toggleJava() { - if( tqparent() && tqparent()->inherits("KHTMLPart")) + if( parent() && parent()->inherits("KHTMLPart")) { - KHTMLPart *part = static_cast(tqparent()); + KHTMLPart *part = static_cast(parent()); part->setJavaEnabled( ((KToggleAction*)actionCollection()->action("java"))->isChecked() ); } } void SettingsPlugin::toggleJavascript() { - if( tqparent() && tqparent()->inherits("KHTMLPart")) + if( parent() && parent()->inherits("KHTMLPart")) { - KHTMLPart *part = static_cast(tqparent()); + KHTMLPart *part = static_cast(parent()); part->setJScriptEnabled( ((KToggleAction*)actionCollection()->action("javascript"))->isChecked() ); } } void SettingsPlugin::toggleCookies() { - if( !tqparent() || !tqparent()->inherits("KHTMLPart")) + if( !parent() || !parent()->inherits("KHTMLPart")) return; - KHTMLPart *part = static_cast( tqparent() ); + KHTMLPart *part = static_cast( parent() ); TQString advice; bool enable = ((KToggleAction*)actionCollection()->action("cookies"))->isChecked(); @@ -203,18 +203,18 @@ void SettingsPlugin::toggleCookies() void SettingsPlugin::togglePlugins() { - if( tqparent() && tqparent()->inherits("KHTMLPart")) + if( parent() && parent()->inherits("KHTMLPart")) { - KHTMLPart *part = static_cast(tqparent()); + KHTMLPart *part = static_cast(parent()); part->setPluginsEnabled( ((KToggleAction*)actionCollection()->action("plugins"))->isChecked() ); } } void SettingsPlugin::toggleImageLoading() { - if( tqparent() && tqparent()->inherits("KHTMLPart")) + if( parent() && parent()->inherits("KHTMLPart")) { - KHTMLPart *part = static_cast(tqparent()); + KHTMLPart *part = static_cast(parent()); part->setAutoloadImages( ((KToggleAction*)actionCollection()->action("imageloading"))->isChecked() ); } } diff --git a/konq-plugins/khtmlsettingsplugin/settingsplugin.h b/konq-plugins/khtmlsettingsplugin/settingsplugin.h index 77fdc09..d70e60e 100644 --- a/konq-plugins/khtmlsettingsplugin/settingsplugin.h +++ b/konq-plugins/khtmlsettingsplugin/settingsplugin.h @@ -30,7 +30,7 @@ class SettingsPlugin : public KParts::Plugin Q_OBJECT TQ_OBJECT public: - SettingsPlugin( TQObject* tqparent, const char* name, + SettingsPlugin( TQObject* parent, const char* name, const TQStringList & ); virtual ~SettingsPlugin(); -- cgit v1.2.1