summaryrefslogtreecommitdiffstats
path: root/lib/compatibility/knewstuff/knewstuffgeneric.cpp
diff options
context:
space:
mode:
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;