summaryrefslogtreecommitdiffstats
path: root/lib/compatibility/knewstuff/engine.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
commite985f7e545f4739493965aad69bbecb136dc9346 (patch)
tree54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /lib/compatibility/knewstuff/engine.cpp
parentf7670c198945adc3b95ad69a959fe5f8ae55b493 (diff)
downloadtdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.tar.gz
tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.zip
TQt4 port kdewebdev
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/compatibility/knewstuff/engine.cpp')
-rw-r--r--lib/compatibility/knewstuff/engine.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/compatibility/knewstuff/engine.cpp b/lib/compatibility/knewstuff/engine.cpp
index ace0b75e..eaa810c3 100644
--- a/lib/compatibility/knewstuff/engine.cpp
+++ b/lib/compatibility/knewstuff/engine.cpp
@@ -40,8 +40,8 @@
using namespace KNS;
Engine::Engine( KNewStuff *newStuff, const TQString &type,
- TQWidget *parentWidget ) :
- mParentWidget( parentWidget ), mDownloadDialog( 0 ),
+ TQWidget *tqparentWidget ) :
+ mParentWidget( tqparentWidget ), mDownloadDialog( 0 ),
mUploadDialog( 0 ), mProviderDialog( 0 ), mUploadProvider( 0 ),
mNewStuff( newStuff ), mType( type )
{
@@ -51,8 +51,8 @@ Engine::Engine( KNewStuff *newStuff, const TQString &type,
}
Engine::Engine( KNewStuff *newStuff, const TQString &type,
- const TQString &providerList, TQWidget *parentWidget ) :
- mParentWidget( parentWidget ),
+ const TQString &providerList, TQWidget *tqparentWidget ) :
+ mParentWidget( tqparentWidget ),
mDownloadDialog( 0 ), mUploadDialog( 0 ),
mProviderDialog( 0 ), mUploadProvider( 0 ),
mProviderList( providerList ), mNewStuff( newStuff ),
@@ -283,11 +283,11 @@ void Engine::upload( Entry *entry )
}
TQString text = i18n("The files to be uploaded have been created at:\n");
- text.append( i18n("Data file: %1\n").arg( mUploadFile) );
+ text.append( i18n("Data file: %1\n").tqarg( mUploadFile) );
if (!mPreviewFile.isEmpty()) {
- text.append( i18n("Preview image: %1\n").arg( mPreviewFile) );
+ text.append( i18n("Preview image: %1\n").tqarg( mPreviewFile) );
}
- text.append( i18n("Content information: %1\n").arg( mUploadMetaFile) );
+ text.append( i18n("Content information: %1\n").tqarg( mUploadMetaFile) );
text.append( i18n("Those files can now be uploaded.\n") );
text.append( i18n("Beware that any people might have access to them at any time.") );
@@ -343,7 +343,7 @@ bool Engine::createMetaFile( Entry *entry )
TQFile f( mUploadMetaFile );
if ( !f.open( IO_WriteOnly ) ) {
- mUploadMetaFile = TQString::null;
+ mUploadMetaFile = TQString();
return false;
}
@@ -401,7 +401,7 @@ void Engine::slotUploadPreviewJobResult( KIO::Job *job )
void Engine::slotUploadMetaJobResult( KIO::Job *job )
{
- mUploadMetaFile = TQString::null;
+ mUploadMetaFile = TQString();
if ( job->error() ) {
kdDebug(5850) << "Error uploading new stuff metadata." << endl;
job->showErrorDialog( mParentWidget );