summaryrefslogtreecommitdiffstats
path: root/src/kbfileinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kbfileinfo.cpp')
-rw-r--r--src/kbfileinfo.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/kbfileinfo.cpp b/src/kbfileinfo.cpp
index 46fe553..6b74173 100644
--- a/src/kbfileinfo.cpp
+++ b/src/kbfileinfo.cpp
@@ -15,20 +15,20 @@
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
-#include <qregexp.h>
-#include <qdir.h>
+#include <ntqregexp.h>
+#include <ntqdir.h>
#include "kbconfig.h"
#include "kbitem.h"
#include "kbfileinfo.h"
-/*KbFileInfo::KbFileInfo() : QFileInfo()
+/*KbFileInfo::KbFileInfo() : TQFileInfo()
{
}*/
-KbFileInfo::KbFileInfo(QString workingdir) : QFileInfo(QDir(workingdir), ".")
+KbFileInfo::KbFileInfo(TQString workingdir) : TQFileInfo(TQDir(workingdir), ".")
{
}
@@ -36,13 +36,13 @@ KbFileInfo::KbFileInfo(QString workingdir) : QFileInfo(QDir(workingdir), ".")
bool KbFileInfo::PrioritySort(KbFileInfo *f1, KbFileInfo *f2)
//bool KbFileInfo::PrioritySort(const KbFileInfo &f1, const KbFileInfo &f2)
{
- QRegExp m_prioritylist(KbConfig::prioritylist());
+ TQRegExp m_prioritylist(KbConfig::prioritylist());
if ((m_prioritylist.search(f1->fileName()) >= 0) > (m_prioritylist.search(f2->fileName()) >= 0)) return true;
else return false;
};
-KbFileInfo::KbFileInfo(QFileInfo qfi) : QFileInfo(qfi)
+KbFileInfo::KbFileInfo(TQFileInfo qfi) : TQFileInfo(qfi)
{
m_date_int =
qfi.lastModified().date().year() * 10000 +
@@ -52,22 +52,22 @@ KbFileInfo::KbFileInfo(QFileInfo qfi) : QFileInfo(qfi)
m_size = qfi.size();
}
-KbFileInfo::KbFileInfo(const KbFileInfo& kfi) : QFileInfo(kfi)
+KbFileInfo::KbFileInfo(const KbFileInfo& kfi) : TQFileInfo(kfi)
{
m_date_int = kfi.m_date_int;
m_date = kfi.m_date;
m_size = kfi.m_size;
}
-KbFileInfo::KbFileInfo(KbItem* item, QString workingdir) : QFileInfo(QDir(workingdir), item->File())
+KbFileInfo::KbFileInfo(KbItem* item, TQString workingdir) : TQFileInfo(TQDir(workingdir), item->File())
{
m_date_int = item->DateInt();
m_date = item->Date();
m_size = item->Size();
}
-KbFileInfo::KbFileInfo(const QString & d, const QString & fileName, off64_t size, QString date, unsigned int date_int)
- : QFileInfo(QDir(d), fileName)
+KbFileInfo::KbFileInfo(const TQString & d, const TQString & fileName, off64_t size, TQString date, unsigned int date_int)
+ : TQFileInfo(TQDir(d), fileName)
{
m_date_int = date_int;
m_date = date;
@@ -78,8 +78,8 @@ KbFileInfo::~KbFileInfo()
{
}
-void KbFileInfo::SetDirPath(QString path)
+void KbFileInfo::SetDirPath(TQString path)
{
- setFile(QDir(path), fileName());
+ setFile(TQDir(path), fileName());
}