summaryrefslogtreecommitdiffstats
path: root/languages/cpp/setuphelper.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /languages/cpp/setuphelper.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/cpp/setuphelper.cpp')
-rw-r--r--languages/cpp/setuphelper.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/languages/cpp/setuphelper.cpp b/languages/cpp/setuphelper.cpp
index deab6135..63b4fd94 100644
--- a/languages/cpp/setuphelper.cpp
+++ b/languages/cpp/setuphelper.cpp
@@ -16,39 +16,39 @@
#include <kdebug.h>
#include "ktempfile.h" /* defines [function] KTempDir */
#include "kstandarddirs.h" /* defines [function] locateLocal */
-#include "qdir.h" /* defines QDir */
+#include "tqdir.h" /* defines TQDir */
#include <stdio.h>
namespace SetupHelper {
-QString getGccIncludePath(bool *ok)
+TQString getGccIncludePath(bool *ok)
{
*ok = true;
- QString processStdout;
+ TQString processStdout;
BlockingKProcess proc;
proc << "gcc" ;
proc << "-print-file-name=include" ;
if ( !proc.start(KProcess::NotifyOnExit, KProcess::Stdout) ) {
kdWarning(9007) << "Couldn't start gcc" << endl;
*ok = false;
- return QString();
+ return TQString();
}
processStdout = proc.stdOut();
return processStdout;
}
-QString getVerboseGccIncludePath(bool *ok)
+TQString getVerboseGccIncludePath(bool *ok)
{
*ok = false;
///Create temp file
KTempFile tempFile(locateLocal("tmp", "kdevelop_temp"), ".cpp");
tempFile.setAutoDelete(true);
if( tempFile.status() != 0 )
- return QString();//Failed to create temp file
+ return TQString();//Failed to create temp file
- QString path = tempFile.name();
- QFileInfo pathInfo( path );
+ TQString path = tempFile.name();
+ TQFileInfo pathInfo( path );
char fileText[] = "//This source-file is empty";
fwrite(fileText, strlen(fileText), 1, tempFile.fstream() );
@@ -61,16 +61,16 @@ QString getVerboseGccIncludePath(bool *ok)
if ( !proc.start(KProcess::NotifyOnExit, KProcess::Stdout) ) {
kdWarning(9007) << "Couldn't start gcc" << endl;
*ok = false;
- return QString();
+ return TQString();
}
*ok = true;
return proc.stdOut();
}
-QStringList getGccMacros(bool *ok)
+TQStringList getGccMacros(bool *ok)
{
*ok = true;
- QString processStdout;
+ TQString processStdout;
BlockingKProcess proc;
proc << "gcc";
proc << "-E";
@@ -80,11 +80,11 @@ QStringList getGccMacros(bool *ok)
if ( !proc.start(KProcess::NotifyOnExit, KProcess::Stdout) ) {
kdWarning(9007) << "Couldn't start gcc" << endl;
*ok = false;
- return QStringList();
+ return TQStringList();
}
proc.closeStdin();
processStdout = proc.stdOut();
- QStringList lines = QStringList::split('\n', processStdout);
+ TQStringList lines = TQStringList::split('\n', processStdout);
return lines;
}