diff options
author | Timothy Pearson <[email protected]> | 2013-01-27 21:01:57 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-27 21:01:57 -0600 |
commit | a5a7573f3597f76e3cf9ebfb5a38416906289ff3 (patch) | |
tree | beabf7411b6bfeb386bea8016fa48eebf61db192 /konq-plugins/tdehtmlsettingsplugin/settingsplugin.cpp | |
parent | f21b0182707822a0aeaedd00578eb18ce191c47d (diff) | |
download | tdeaddons-a5a7573f3597f76e3cf9ebfb5a38416906289ff3.tar.gz tdeaddons-a5a7573f3597f76e3cf9ebfb5a38416906289ff3.zip |
Rename kiobuffer and KHTML
Diffstat (limited to 'konq-plugins/tdehtmlsettingsplugin/settingsplugin.cpp')
-rw-r--r-- | konq-plugins/tdehtmlsettingsplugin/settingsplugin.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/konq-plugins/tdehtmlsettingsplugin/settingsplugin.cpp b/konq-plugins/tdehtmlsettingsplugin/settingsplugin.cpp index 708c3da..f81dacc 100644 --- a/konq-plugins/tdehtmlsettingsplugin/settingsplugin.cpp +++ b/konq-plugins/tdehtmlsettingsplugin/settingsplugin.cpp @@ -118,13 +118,13 @@ SettingsPlugin::~SettingsPlugin() void SettingsPlugin::showPopup() { - if( !parent() || !parent()->inherits("KHTMLPart")) + if( !parent() || !parent()->inherits("TDEHTMLPart")) return; if (!mConfig) mConfig = new TDEConfig("settingspluginrc", false, false); - KHTMLPart *part = static_cast<KHTMLPart *>( parent() ); + TDEHTMLPart *part = static_cast<TDEHTMLPart *>( parent() ); KProtocolManager::reparseConfiguration(); bool cookies = cookiesEnabled( part->url().url() ); @@ -159,28 +159,28 @@ void SettingsPlugin::showPopup() void SettingsPlugin::toggleJava() { - if( parent() && parent()->inherits("KHTMLPart")) + if( parent() && parent()->inherits("TDEHTMLPart")) { - KHTMLPart *part = static_cast<KHTMLPart *>(parent()); + TDEHTMLPart *part = static_cast<TDEHTMLPart *>(parent()); part->setJavaEnabled( ((KToggleAction*)actionCollection()->action("java"))->isChecked() ); } } void SettingsPlugin::toggleJavascript() { - if( parent() && parent()->inherits("KHTMLPart")) + if( parent() && parent()->inherits("TDEHTMLPart")) { - KHTMLPart *part = static_cast<KHTMLPart *>(parent()); + TDEHTMLPart *part = static_cast<TDEHTMLPart *>(parent()); part->setJScriptEnabled( ((KToggleAction*)actionCollection()->action("javascript"))->isChecked() ); } } void SettingsPlugin::toggleCookies() { - if( !parent() || !parent()->inherits("KHTMLPart")) + if( !parent() || !parent()->inherits("TDEHTMLPart")) return; - KHTMLPart *part = static_cast<KHTMLPart *>( parent() ); + TDEHTMLPart *part = static_cast<TDEHTMLPart *>( parent() ); TQString advice; bool enable = ((KToggleAction*)actionCollection()->action("cookies"))->isChecked(); @@ -203,18 +203,18 @@ void SettingsPlugin::toggleCookies() void SettingsPlugin::togglePlugins() { - if( parent() && parent()->inherits("KHTMLPart")) + if( parent() && parent()->inherits("TDEHTMLPart")) { - KHTMLPart *part = static_cast<KHTMLPart *>(parent()); + TDEHTMLPart *part = static_cast<TDEHTMLPart *>(parent()); part->setPluginsEnabled( ((KToggleAction*)actionCollection()->action("plugins"))->isChecked() ); } } void SettingsPlugin::toggleImageLoading() { - if( parent() && parent()->inherits("KHTMLPart")) + if( parent() && parent()->inherits("TDEHTMLPart")) { - KHTMLPart *part = static_cast<KHTMLPart *>(parent()); + TDEHTMLPart *part = static_cast<TDEHTMLPart *>(parent()); part->setAutoloadImages( ((KToggleAction*)actionCollection()->action("imageloading"))->isChecked() ); } } |