summaryrefslogtreecommitdiffstats
path: root/konq-plugins/webarchiver/plugin_webarchiver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konq-plugins/webarchiver/plugin_webarchiver.cpp')
-rw-r--r--konq-plugins/webarchiver/plugin_webarchiver.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/konq-plugins/webarchiver/plugin_webarchiver.cpp b/konq-plugins/webarchiver/plugin_webarchiver.cpp
index 81dc9ba..c76f56c 100644
--- a/konq-plugins/webarchiver/plugin_webarchiver.cpp
+++ b/konq-plugins/webarchiver/plugin_webarchiver.cpp
@@ -29,8 +29,8 @@
//#define DEBUG_WAR
-#include <qdir.h>
-#include <qfile.h>
+#include <tqdir.h>
+#include <tqfile.h>
#include <kaction.h>
#include <kinstance.h>
@@ -50,13 +50,13 @@ typedef KGenericFactory<PluginWebArchiver> PluginWebArchiverFactory;
K_EXPORT_COMPONENT_FACTORY( libwebarchiverplugin,
PluginWebArchiverFactory( "webarchiver" ) )
-PluginWebArchiver::PluginWebArchiver( QObject* parent, const char* name,
- const QStringList & )
+PluginWebArchiver::PluginWebArchiver( TQObject* parent, const char* name,
+ const TQStringList & )
: Plugin( parent, name )
{
(void) new KAction( i18n("Archive &Web Page..."),
"webarchiver", 0,
- this, SLOT(slotSaveToArchive()),
+ this, TQT_SLOT(slotSaveToArchive()),
actionCollection(), "archivepage" );
}
@@ -71,7 +71,7 @@ void PluginWebArchiver::slotSaveToArchive()
return;
KHTMLPart *part = static_cast<KHTMLPart *>( parent() );
- QString archiveName = QString::fromUtf8(part->htmlDocument().title().string().utf8());
+ TQString archiveName = TQString::fromUtf8(part->htmlDocument().title().string().utf8());
if (archiveName.isEmpty())
archiveName = i18n("Untitled");
@@ -83,7 +83,7 @@ void PluginWebArchiver::slotSaveToArchive()
archiveName.replace( "?", "");
archiveName.replace( ":", "");
archiveName.replace( "/", "");
- archiveName = archiveName.replace( QRegExp("\\s+"), "_");
+ archiveName = archiveName.replace( TQRegExp("\\s+"), "_");
archiveName = KGlobalSettings::documentPath() + "/" + archiveName + ".war" ;
@@ -93,16 +93,16 @@ void PluginWebArchiver::slotSaveToArchive()
if (url.isEmpty()) { return; }
if (!(url.isValid())) {
- const QString title = i18n( "Invalid URL" );
- const QString text = i18n( "The URL\n%1\nis not valid." ).arg(url.prettyURL());
+ const TQString title = i18n( "Invalid URL" );
+ const TQString text = i18n( "The URL\n%1\nis not valid." ).arg(url.prettyURL());
KMessageBox::sorry(part->widget(), text, title );
return;
}
- const QFile file(url.path());
+ const TQFile file(url.path());
if (file.exists()) {
- const QString title = i18n( "File Exists" );
- const QString text = i18n( "Do you really want to overwrite:\n%1?" ).arg(url.prettyURL());
+ const TQString title = i18n( "File Exists" );
+ const TQString text = i18n( "Do you really want to overwrite:\n%1?" ).arg(url.prettyURL());
if (KMessageBox::Continue != KMessageBox::warningContinueCancel( part->widget(), text, title, i18n("Overwrite") ) ) {
return;
}