summaryrefslogtreecommitdiffstats
path: root/konq-plugins/validators/plugin_validators.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konq-plugins/validators/plugin_validators.cpp')
-rw-r--r--konq-plugins/validators/plugin_validators.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/konq-plugins/validators/plugin_validators.cpp b/konq-plugins/validators/plugin_validators.cpp
index 69f07cd..f669308 100644
--- a/konq-plugins/validators/plugin_validators.cpp
+++ b/konq-plugins/validators/plugin_validators.cpp
@@ -44,8 +44,8 @@ static const KAboutData aboutdata("validatorsplugin", I18N_NOOP("Validate Web Pa
K_EXPORT_COMPONENT_FACTORY( libvalidatorsplugin,
PluginValidatorsFactory( &aboutdata ) )
-PluginValidators::PluginValidators( QObject* parent, const char* name,
- const QStringList & )
+PluginValidators::PluginValidators( TQObject* parent, const char* name,
+ const TQStringList & )
: Plugin( parent, name ), m_configDialog(0), m_part(0)
{
setInstance(PluginValidatorsFactory::instance());
@@ -56,17 +56,17 @@ PluginValidators::PluginValidators( QObject* parent, const char* name,
m_menu->insert( new KAction( i18n( "Validate &HTML" ),
"htmlvalidator", 0,
- this, SLOT(slotValidateHTML()),
+ this, TQT_SLOT(slotValidateHTML()),
actionCollection(), "validateHTML") );
m_menu->insert( new KAction( i18n( "Validate &CSS" ),
"cssvalidator", 0,
- this, SLOT(slotValidateCSS()),
+ this, TQT_SLOT(slotValidateCSS()),
actionCollection(), "validateCSS") );
m_menu->insert( new KAction( i18n( "Validate &Links" ),
0,
- this, SLOT(slotValidateLinks()),
+ this, TQT_SLOT(slotValidateLinks()),
actionCollection(), "validateLinks") );
m_menu->setEnabled( false );
@@ -75,15 +75,15 @@ PluginValidators::PluginValidators( QObject* parent, const char* name,
{
m_menu->insert( new KAction( i18n( "C&onfigure Validator..." ),
"configure", 0,
- this, SLOT(slotConfigure()),
+ this, TQT_SLOT(slotConfigure()),
actionCollection(), "configure") );
m_part = static_cast<KHTMLPart *>( parent );
m_configDialog = new ValidatorsDialog( m_part->widget() );
setURLs();
- connect( m_part, SIGNAL(started(KIO::Job*)), this,
- SLOT(slotStarted(KIO::Job*)) );
+ connect( m_part, TQT_SIGNAL(started(KIO::Job*)), this,
+ TQT_SLOT(slotStarted(KIO::Job*)) );
}
}
@@ -143,8 +143,8 @@ void PluginValidators::validateURL(const KURL &url, const KURL &uploadUrl)
// The parent is assumed to be a KHTMLPart
if ( !parent()->inherits("KHTMLPart") )
{
- QString title = i18n( "Cannot Validate Source" );
- QString text = i18n( "You cannot validate anything except web pages with "
+ TQString title = i18n( "Cannot Validate Source" );
+ TQString text = i18n( "You cannot validate anything except web pages with "
"this plugin." );
KMessageBox::sorry( 0, text, title );
@@ -157,8 +157,8 @@ void PluginValidators::validateURL(const KURL &url, const KURL &uploadUrl)
KURL partUrl = m_part->url();
if ( !partUrl.isValid() ) // Just in case ;)
{
- QString title = i18n( "Malformed URL" );
- QString text = i18n( "The URL you entered is not valid, please "
+ TQString title = i18n( "Malformed URL" );
+ TQString text = i18n( "The URL you entered is not valid, please "
"correct it and try again." );
KMessageBox::sorry( 0, text, title );
return;
@@ -167,8 +167,8 @@ void PluginValidators::validateURL(const KURL &url, const KURL &uploadUrl)
if (partUrl.isLocalFile())
{
if ( validatorUrl.isEmpty() ) {
- QString title = i18n( "Upload Not Possible" );
- QString text = i18n( "Validating links is not possible for local "
+ TQString title = i18n( "Upload Not Possible" );
+ TQString text = i18n( "Validating links is not possible for local "
"files." );
KMessageBox::sorry( 0, text, title );
return;
@@ -188,9 +188,9 @@ void PluginValidators::validateURL(const KURL &url, const KURL &uploadUrl)
return;
}
// Set entered URL as a parameter
- QString q = partUrl.url();
+ TQString q = partUrl.url();
q = KURL::encode_string( q );
- QString p = "uri=";
+ TQString p = "uri=";
p += q;
validatorUrl.setQuery( p );
}