diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 90363652674deb94cd07057428b24fcb1735dbce (patch) | |
tree | 35013223cb731f194f8584cc1c06a023c3c75c85 /konq-plugins/khtmlsettingsplugin/settingsplugin.cpp | |
parent | 627b091fad9df13695f249588e8a58f524eda0fa (diff) | |
download | tdeaddons-90363652674deb94cd07057428b24fcb1735dbce.tar.gz tdeaddons-90363652674deb94cd07057428b24fcb1735dbce.zip |
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
Diffstat (limited to 'konq-plugins/khtmlsettingsplugin/settingsplugin.cpp')
-rw-r--r-- | konq-plugins/khtmlsettingsplugin/settingsplugin.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
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<KHTMLPart *>( tqparent() ); + KHTMLPart *part = static_cast<KHTMLPart *>( 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<KHTMLPart *>(tqparent()); + KHTMLPart *part = static_cast<KHTMLPart *>(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<KHTMLPart *>(tqparent()); + KHTMLPart *part = static_cast<KHTMLPart *>(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<KHTMLPart *>( tqparent() ); + KHTMLPart *part = static_cast<KHTMLPart *>( 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<KHTMLPart *>(tqparent()); + KHTMLPart *part = static_cast<KHTMLPart *>(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<KHTMLPart *>(tqparent()); + KHTMLPart *part = static_cast<KHTMLPart *>(parent()); part->setAutoloadImages( ((KToggleAction*)actionCollection()->action("imageloading"))->isChecked() ); } } |