summaryrefslogtreecommitdiffstats
path: root/konq-plugins/babelfish/plugin_babelfish.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konq-plugins/babelfish/plugin_babelfish.cpp')
-rw-r--r--konq-plugins/babelfish/plugin_babelfish.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/konq-plugins/babelfish/plugin_babelfish.cpp b/konq-plugins/babelfish/plugin_babelfish.cpp
index 0cd4a54..a575396 100644
--- a/konq-plugins/babelfish/plugin_babelfish.cpp
+++ b/konq-plugins/babelfish/plugin_babelfish.cpp
@@ -178,7 +178,7 @@ PluginBabelFish::PluginBabelFish( TQObject* parent, const char* name,
m_menu->setEnabled( true );
// TODO: we could also support plain text viewers...
- if ( parent && parent->inherits( "KHTMLPart" ) )
+ if ( parent && parent->inherits( "TDEHTMLPart" ) )
{
KParts::ReadOnlyPart* part = static_cast<KParts::ReadOnlyPart *>(parent);
connect( part, TQT_SIGNAL(started(TDEIO::Job*)), this,
@@ -193,7 +193,7 @@ PluginBabelFish::~PluginBabelFish()
void PluginBabelFish::slotStarted( TDEIO::Job* )
{
- if ( parent()->inherits("KHTMLPart") &&
+ if ( parent()->inherits("TDEHTMLPart") &&
// Babelfish wants http URLs only. No https.
static_cast<KParts::ReadOnlyPart *>(parent())->url().protocol().lower() == "http" )
{
@@ -211,8 +211,8 @@ void PluginBabelFish::translateURL()
if ( !sender() )
return;
- // The parent is assumed to be a KHTMLPart
- if ( !parent()->inherits("KHTMLPart") )
+ // The parent is assumed to be a TDEHTMLPart
+ if ( !parent()->inherits("TDEHTMLPart") )
{
TQString title = i18n( "Cannot Translate Source" );
TQString text = i18n( "Only web pages can be translated using "
@@ -227,7 +227,7 @@ void PluginBabelFish::translateURL()
TQString engine = cfg.readEntry( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name(), "babelfish" );
// Get URL
- KHTMLPart *part = dynamic_cast<KHTMLPart *>(parent());
+ TDEHTMLPart *part = dynamic_cast<TDEHTMLPart *>(parent());
if ( !part )
return;