summaryrefslogtreecommitdiffstats
path: root/kiconedit/utils.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kiconedit/utils.cpp
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kiconedit/utils.cpp')
-rw-r--r--kiconedit/utils.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kiconedit/utils.cpp b/kiconedit/utils.cpp
index 1af52803..e5748ffe 100644
--- a/kiconedit/utils.cpp
+++ b/kiconedit/utils.cpp
@@ -47,17 +47,17 @@ void setupImageHandlers()
formats->append(new imageFormat("ICO", "Windows Icon File", "ico"));
/*
#ifdef HAVE_LIBJPEG
- QImageIO::defineIOHandler("JFIF","^\377\330\377\340", 0, read_jpeg_jfif, NULL);
+ TQImageIO::defineIOHandler("JFIF","^\377\330\377\340", 0, read_jpeg_jfif, NULL);
#endif
*/
}
// Simple copy operation on local files (isn't there something like this in the libs?)
-bool copyFile(const QString &src, const QString &dest)
+bool copyFile(const TQString &src, const TQString &dest)
{
- QFile f_src(src);
- QFile f_dest(dest);
- QFileInfo fi(f_src);
+ TQFile f_src(src);
+ TQFile f_dest(dest);
+ TQFileInfo fi(f_src);
uint src_size = fi.size();
kdDebug(4640) << "Size: " << src_size << endl;
@@ -96,11 +96,11 @@ bool copyFile(const QString &src, const QString &dest)
return false;
}
-bool removeFile(const QString &file)
+bool removeFile(const TQString &file)
{
- if(file.length() > 0 && QFile::exists(file))
+ if(file.length() > 0 && TQFile::exists(file))
{
- QDir d;
+ TQDir d;
kdDebug(4640) << "Removing " << file << endl;
if(!d.remove(file))
{
@@ -112,7 +112,7 @@ bool removeFile(const QString &file)
return false;
}
-bool moveFile(const QString &src, const QString &dest)
+bool moveFile(const TQString &src, const TQString &dest)
{
if(copyFile(src, dest))
return removeFile(src);