summaryrefslogtreecommitdiffstats
path: root/lib/compatibility/knewstuff/knewstuffgeneric.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/knewstuffgeneric.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/knewstuffgeneric.cpp')
-rw-r--r--lib/compatibility/knewstuff/knewstuffgeneric.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/compatibility/knewstuff/knewstuffgeneric.cpp b/lib/compatibility/knewstuff/knewstuffgeneric.cpp
index 51305f62..5b085a32 100644
--- a/lib/compatibility/knewstuff/knewstuffgeneric.cpp
+++ b/lib/compatibility/knewstuff/knewstuffgeneric.cpp
@@ -37,8 +37,8 @@
using namespace std;
-KNewStuffGeneric::KNewStuffGeneric( const TQString &type, TQWidget *parent )
- : KNewStuff( type, parent )
+KNewStuffGeneric::KNewStuffGeneric( const TQString &type, TQWidget *tqparent )
+ : KNewStuff( type, tqparent )
{
mConfig = KGlobal::config();
}
@@ -70,7 +70,7 @@ bool KNewStuffGeneric::install( const TQString &fileName )
kdDebug(5850) << "InstallationCommand: " << cmd << endl;
list = TQStringList::split( " ", cmd );
for ( TQStringList::iterator it = list.begin(); it != list.end(); ++it) {
- list2 << (*it).replace("%f", fileName);
+ list2 << (*it).tqreplace("%f", fileName);
}
KProcess proc;
proc << list2;
@@ -110,7 +110,7 @@ TQString KNewStuffGeneric::destinationPath( KNS::Entry *entry )
}
if ( res.isEmpty() && path.isEmpty() )
{
- if ( !entry ) return TQString::null;
+ if ( !entry ) return TQString();
else return KNewStuff::downloadDestination( entry );
}
@@ -129,11 +129,11 @@ TQString KNewStuffGeneric::downloadDestination( KNS::Entry *entry )
TQString file = destinationPath(entry);
if ( KStandardDirs::exists( file ) ) {
- int result = KMessageBox::warningContinueCancel( parentWidget(),
+ int result = KMessageBox::warningContinueCancel( tqparentWidget(),
i18n("The file '%1' already exists. Do you want to override it?")
- .arg( file ),
- TQString::null, i18n("Overwrite") );
- if ( result == KMessageBox::Cancel ) return TQString::null;
+ .tqarg( file ),
+ TQString(), i18n("Overwrite") );
+ if ( result == KMessageBox::Cancel ) return TQString();
}
return file;