diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kiconedit/utils.cpp | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-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.cpp | 18 |
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); |