summaryrefslogtreecommitdiffstats
path: root/src/projectbase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/projectbase.cpp')
-rw-r--r--src/projectbase.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/projectbase.cpp b/src/projectbase.cpp
index f99c045..603ba44 100644
--- a/src/projectbase.cpp
+++ b/src/projectbase.cpp
@@ -37,9 +37,9 @@ ProjectBase::~ProjectBase()
{
}
-bool ProjectBase::open(const QString& sPath)
+bool ProjectBase::open(const TQString& sPath)
{
- QFileInfo fi(sPath);
+ TQFileInfo fi(sPath);
// Make sure the file exists, and that is is a cross-reference file
if (!fi.exists() || !isCscopeOut(fi.absFilePath()))
@@ -73,7 +73,7 @@ void ProjectBase::getOptions(Options& opt) const
getDefOptions(opt);
}
-void ProjectBase::getMakeParams(QString& sCmd, QString& sDir) const
+void ProjectBase::getMakeParams(TQString& sCmd, TQString& sDir) const
{
sCmd = "make";
sDir = getSourceRoot();
@@ -136,10 +136,10 @@ void ProjectBase::initOptions()
* @param sPath The full path of the file to check
* @return true if the given file is a cscope.out file, false otherwise
*/
-bool ProjectBase::isCscopeOut(const QString& sPath)
+bool ProjectBase::isCscopeOut(const TQString& sPath)
{
- QFile file(sPath);
- QString sLine;
+ TQFile file(sPath);
+ TQString sLine;
int nVer;
char szDir[PATH_MAX];
@@ -148,7 +148,7 @@ bool ProjectBase::isCscopeOut(const QString& sPath)
return false;
// Check if the first line matches the expected format
- sLine = QTextStream(&file).readLine();
+ sLine = TQTextStream(&file).readLine();
return sscanf(sLine.latin1(), "cscope %d %s", &nVer, szDir) == 2;
}
@@ -162,8 +162,8 @@ bool ProjectBase::isCscopeOut(const QString& sPath)
*/
bool ProjectBase::loadFileList(FileListTarget* pList)
{
- QString sFilePath;
- QFile file;
+ TQString sFilePath;
+ TQFile file;
// Make sure the file exists
if (!m_dir.exists("cscope.files"))
@@ -175,8 +175,8 @@ bool ProjectBase::loadFileList(FileListTarget* pList)
return false;
// Read all file names from the file
- QTextStream str(&file);
- while ((sFilePath = str.readLine()) != QString::null) {
+ TQTextStream str(&file);
+ while ((sFilePath = str.readLine()) != TQString::null) {
// Skip option lines
if (sFilePath.at(0) == '-')
continue;