From 7346aee26bf190a7e70333c40fab4caca847cd27 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:22:56 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- konq-plugins/webarchiver/plugin_webarchiver.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'konq-plugins/webarchiver/plugin_webarchiver.cpp') 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 -#include +#include +#include #include #include @@ -50,13 +50,13 @@ typedef KGenericFactory 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( 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; } -- cgit v1.2.1