summaryrefslogtreecommitdiffstats
path: root/superkaramba/src/sknewstuff.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
commit5f5ee2367157176ed223b86343eb0a9e4022e020 (patch)
tree6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /superkaramba/src/sknewstuff.cpp
parent4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff)
downloadtdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz
tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'superkaramba/src/sknewstuff.cpp')
-rw-r--r--superkaramba/src/sknewstuff.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/superkaramba/src/sknewstuff.cpp b/superkaramba/src/sknewstuff.cpp
index bf16fe6..3dd32f6 100644
--- a/superkaramba/src/sknewstuff.cpp
+++ b/superkaramba/src/sknewstuff.cpp
@@ -27,8 +27,8 @@
#include <kstandarddirs.h>
#include <ktar.h>
#include <kurl.h>
-#include <qdir.h>
-#include <qfileinfo.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
@@ -45,16 +45,16 @@ SKNewStuff::SKNewStuff( ThemesDlg *dlg ) :
{
}
-bool SKNewStuff::install( const QString &fileName )
+bool SKNewStuff::install( const TQString &fileName )
{
kdDebug() << "SKNewStuff::install(): " << fileName << endl;
KMimeType::Ptr result = KMimeType::findByURL(fileName);
KStandardDirs myStdDir;
- QFileInfo fi(fileName);
- QString base = fi.baseName();
- QString baseDestDir =myStdDir.saveLocation("data", kapp->instanceName() + "/themes/", true);
- const QString destDir = baseDestDir + base + "/";
+ TQFileInfo fi(fileName);
+ TQString base = fi.baseName();
+ TQString baseDestDir =myStdDir.saveLocation("data", kapp->instanceName() + "/themes/", true);
+ const TQString destDir = baseDestDir + base + "/";
KStandardDirs::makeDir( destDir );
kdDebug() << "SKNewStuff::install() mimetype: " << result->name() << endl;
@@ -114,20 +114,20 @@ bool SKNewStuff::install( const QString &fileName )
return true;
}
-bool SKNewStuff::createUploadFile( const QString &fileName )
+bool SKNewStuff::createUploadFile( const TQString &fileName )
{
kdDebug() << "SKNewStuff::createUploadFile(): " << fileName << endl;
return true;
}
-QString SKNewStuff::downloadDestination( KNS::Entry *entry )
+TQString SKNewStuff::downloadDestination( KNS::Entry *entry )
{
KURL source = entry->payload();
m_sourceLink = source;
kdDebug() << "SKNewStuff::downloadDestination() url: "
<< source.url() << " fileName: " << source.fileName() << endl;
- QString file(source.fileName());
+ TQString file(source.fileName());
if ( file.isEmpty() )
{
kdDebug() << "The file was empty. " << source.url() <<