From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:48:06 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kpf/src/Resource.cpp | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'kpf/src/Resource.cpp') diff --git a/kpf/src/Resource.cpp b/kpf/src/Resource.cpp index d5e77072..6c3dad91 100644 --- a/kpf/src/Resource.cpp +++ b/kpf/src/Resource.cpp @@ -21,11 +21,11 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include @@ -50,17 +50,17 @@ namespace KPF { } - QString root; + TQString root; FileType fileType; - QString path; - QFile file; - QFileInfo fileInfo; - QDir dir; + TQString path; + TQFile file; + TQFileInfo fileInfo; + TQDir dir; uint size; bool sizeCalculated; uint offset; - QByteArray html; + TQByteArray html; }; Resource::Resource() @@ -75,7 +75,7 @@ namespace KPF } void - Resource::setPath(const QString & root, const QString & relativePath) + Resource::setPath(const TQString & root, const TQString & relativePath) { kpfDebug << "setPath(`" << root << "',`" << relativePath << "'" << endl; @@ -99,13 +99,13 @@ namespace KPF // Does the path actually point to a directory ? - if (QFileInfo(d->root + d->path).isDir()) + if (TQFileInfo(d->root + d->path).isDir()) { kpfDebug << "Path points to directory" << endl; // Does an index.html exist in that directory ? - if (QFileInfo(d->root + d->path + "index.html").exists()) + if (TQFileInfo(d->root + d->path + "index.html").exists()) { kpfDebug << "Found index.html" << endl; @@ -129,7 +129,7 @@ namespace KPF kpfDebug << "NOT Directory requested" << endl; } - kpfDebug << "QFileInfo::setFile(`" << d->root << "' + `" << d->path << "'" << endl; + kpfDebug << "TQFileInfo::setFile(`" << d->root << "' + `" << d->path << "'" << endl; d->fileInfo.setFile(d->root + d->path); } @@ -296,18 +296,18 @@ namespace KPF if (d->fileInfo.isSymLink()) return true; - QString path(d->fileInfo.dirPath()); + TQString path(d->fileInfo.dirPath()); - QStringList l(QStringList::split('/', path)); + TQStringList l(TQStringList::split('/', path)); - QString testPath; + TQString testPath; - for (QStringList::ConstIterator it(l.begin()); it != l.end(); ++it) + for (TQStringList::ConstIterator it(l.begin()); it != l.end(); ++it) { testPath += '/'; testPath += *it; - if (QFileInfo(testPath).isSymLink()) + if (TQFileInfo(testPath).isSymLink()) return true; } -- cgit v1.2.1