summaryrefslogtreecommitdiffstats
path: root/src/projectbase.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-10-08 00:13:25 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-10-08 05:14:53 +0200
commit84f5a315c3429b47a7eff15e626e2efdbe4f6e5e (patch)
tree770861aa9033e1dc6c5168358194ff85b32dd429 /src/projectbase.cpp
parent57d8bb3d12aed373eee08915f0ff19f5233aabe3 (diff)
downloadkscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.tar.gz
kscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.zip
Initial TQt conversion
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;