summaryrefslogtreecommitdiffstats
path: root/kpf/src/Resource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpf/src/Resource.cpp')
-rw-r--r--kpf/src/Resource.cpp40
1 files changed, 20 insertions, 20 deletions
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 <qstringlist.h>
-#include <qdir.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qregexp.h>
+#include <tqstringlist.h>
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqregexp.h>
#include <kglobal.h>
#include <kmimetype.h>
@@ -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;
}