From 84f5a315c3429b47a7eff15e626e2efdbe4f6e5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 8 Oct 2013 00:13:25 +0200 Subject: Initial TQt conversion --- src/projectbase.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/projectbase.cpp') 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; -- cgit v1.2.1