summaryrefslogtreecommitdiffstats
path: root/konq-plugins/tdehtmlsettingsplugin/settingsplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konq-plugins/tdehtmlsettingsplugin/settingsplugin.cpp')
-rw-r--r--konq-plugins/tdehtmlsettingsplugin/settingsplugin.cpp24
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() );
}
}