summaryrefslogtreecommitdiffstats
path: root/konq-plugins/khtmlsettingsplugin/settingsplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konq-plugins/khtmlsettingsplugin/settingsplugin.cpp')
-rw-r--r--konq-plugins/khtmlsettingsplugin/settingsplugin.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/konq-plugins/khtmlsettingsplugin/settingsplugin.cpp b/konq-plugins/khtmlsettingsplugin/settingsplugin.cpp
index 989ec43..3d52c5b 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* parent, const char* name,
+SettingsPlugin::SettingsPlugin( TQObject* tqparent, const char* name,
const TQStringList & )
- : KParts::Plugin( parent, name ), mConfig(0)
+ : KParts::Plugin( tqparent, name ), mConfig(0)
{
setInstance(SettingsPluginFactory::instance());
@@ -118,13 +118,13 @@ SettingsPlugin::~SettingsPlugin()
void SettingsPlugin::showPopup()
{
- if( !parent() || !parent()->inherits("KHTMLPart"))
+ if( !tqparent() || !tqparent()->inherits("KHTMLPart"))
return;
if (!mConfig)
mConfig = new KConfig("settingspluginrc", false, false);
- KHTMLPart *part = static_cast<KHTMLPart *>( parent() );
+ KHTMLPart *part = static_cast<KHTMLPart *>( tqparent() );
KProtocolManager::reparseConfiguration();
bool cookies = cookiesEnabled( part->url().url() );
@@ -159,28 +159,28 @@ void SettingsPlugin::showPopup()
void SettingsPlugin::toggleJava()
{
- if( parent() && parent()->inherits("KHTMLPart"))
+ if( tqparent() && tqparent()->inherits("KHTMLPart"))
{
- KHTMLPart *part = static_cast<KHTMLPart *>(parent());
+ KHTMLPart *part = static_cast<KHTMLPart *>(tqparent());
part->setJavaEnabled( ((KToggleAction*)actionCollection()->action("java"))->isChecked() );
}
}
void SettingsPlugin::toggleJavascript()
{
- if( parent() && parent()->inherits("KHTMLPart"))
+ if( tqparent() && tqparent()->inherits("KHTMLPart"))
{
- KHTMLPart *part = static_cast<KHTMLPart *>(parent());
+ KHTMLPart *part = static_cast<KHTMLPart *>(tqparent());
part->setJScriptEnabled( ((KToggleAction*)actionCollection()->action("javascript"))->isChecked() );
}
}
void SettingsPlugin::toggleCookies()
{
- if( !parent() || !parent()->inherits("KHTMLPart"))
+ if( !tqparent() || !tqparent()->inherits("KHTMLPart"))
return;
- KHTMLPart *part = static_cast<KHTMLPart *>( parent() );
+ KHTMLPart *part = static_cast<KHTMLPart *>( tqparent() );
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( tqparent() && tqparent()->inherits("KHTMLPart"))
{
- KHTMLPart *part = static_cast<KHTMLPart *>(parent());
+ KHTMLPart *part = static_cast<KHTMLPart *>(tqparent());
part->setPluginsEnabled( ((KToggleAction*)actionCollection()->action("plugins"))->isChecked() );
}
}
void SettingsPlugin::toggleImageLoading()
{
- if( parent() && parent()->inherits("KHTMLPart"))
+ if( tqparent() && tqparent()->inherits("KHTMLPart"))
{
- KHTMLPart *part = static_cast<KHTMLPart *>(parent());
+ KHTMLPart *part = static_cast<KHTMLPart *>(tqparent());
part->setAutoloadImages( ((KToggleAction*)actionCollection()->action("imageloading"))->isChecked() );
}
}
@@ -229,7 +229,7 @@ bool SettingsPlugin::cookiesEnabled( const TQString& url )
bool enabled = false;
- if ( replyType == "TQString" )
+ if ( replyType == TQSTRING_OBJECT_NAME_STRING )
{
TQString advice;
TQDataStream s( reply, IO_ReadOnly );