summaryrefslogtreecommitdiffstats
path: root/konq-plugins/webarchiver/plugin_webarchiver.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 17:00:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 17:00:31 +0000
commit395a904bff7b4d6ead445c342f7ac0c5fbf29121 (patch)
tree9829cadb79d2cc7c29a940627fadb28b11e54150 /konq-plugins/webarchiver/plugin_webarchiver.cpp
parent399f47c376fdf4d19192732a701ea9578d11619d (diff)
downloadtdeaddons-395a904bff7b4d6ead445c342f7ac0c5fbf29121.tar.gz
tdeaddons-395a904bff7b4d6ead445c342f7ac0c5fbf29121.zip
TQt4 port kdeaddons
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1237404 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konq-plugins/webarchiver/plugin_webarchiver.cpp')
-rw-r--r--konq-plugins/webarchiver/plugin_webarchiver.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/konq-plugins/webarchiver/plugin_webarchiver.cpp b/konq-plugins/webarchiver/plugin_webarchiver.cpp
index c76f56c..280b0e2 100644
--- a/konq-plugins/webarchiver/plugin_webarchiver.cpp
+++ b/konq-plugins/webarchiver/plugin_webarchiver.cpp
@@ -50,9 +50,9 @@ typedef KGenericFactory<PluginWebArchiver> PluginWebArchiverFactory;
K_EXPORT_COMPONENT_FACTORY( libwebarchiverplugin,
PluginWebArchiverFactory( "webarchiver" ) )
-PluginWebArchiver::PluginWebArchiver( TQObject* parent, const char* name,
+PluginWebArchiver::PluginWebArchiver( TQObject* tqparent, const char* name,
const TQStringList & )
- : Plugin( parent, name )
+ : Plugin( tqparent, name )
{
(void) new KAction( i18n("Archive &Web Page..."),
"webarchiver", 0,
@@ -67,9 +67,9 @@ PluginWebArchiver::~PluginWebArchiver()
void PluginWebArchiver::slotSaveToArchive()
{
// ## Unicode ok?
- if( !parent() || !parent()->inherits("KHTMLPart"))
+ if( !tqparent() || !tqparent()->inherits("KHTMLPart"))
return;
- KHTMLPart *part = static_cast<KHTMLPart *>( parent() );
+ KHTMLPart *part = static_cast<KHTMLPart *>( tqparent() );
TQString archiveName = TQString::fromUtf8(part->htmlDocument().title().string().utf8());
@@ -78,12 +78,12 @@ void PluginWebArchiver::slotSaveToArchive()
// Replace space with underscore, proposed Frank Pieczynski <[email protected]>
- archiveName.replace( "\\s:", " ");
+ archiveName.tqreplace( "\\s:", " ");
archiveName = archiveName.simplifyWhiteSpace();
- archiveName.replace( "?", "");
- archiveName.replace( ":", "");
- archiveName.replace( "/", "");
- archiveName = archiveName.replace( TQRegExp("\\s+"), "_");
+ archiveName.tqreplace( "?", "");
+ archiveName.tqreplace( ":", "");
+ archiveName.tqreplace( "/", "");
+ archiveName = archiveName.tqreplace( TQRegExp("\\s+"), "_");
archiveName = KGlobalSettings::documentPath() + "/" + archiveName + ".war" ;
@@ -94,7 +94,7 @@ void PluginWebArchiver::slotSaveToArchive()
if (!(url.isValid())) {
const TQString title = i18n( "Invalid URL" );
- const TQString text = i18n( "The URL\n%1\nis not valid." ).arg(url.prettyURL());
+ const TQString text = i18n( "The URL\n%1\nis not valid." ).tqarg(url.prettyURL());
KMessageBox::sorry(part->widget(), text, title );
return;
}
@@ -102,7 +102,7 @@ void PluginWebArchiver::slotSaveToArchive()
const TQFile file(url.path());
if (file.exists()) {
const TQString title = i18n( "File Exists" );
- const TQString text = i18n( "Do you really want to overwrite:\n%1?" ).arg(url.prettyURL());
+ const TQString text = i18n( "Do you really want to overwrite:\n%1?" ).tqarg(url.prettyURL());
if (KMessageBox::Continue != KMessageBox::warningContinueCancel( part->widget(), text, title, i18n("Overwrite") ) ) {
return;
}