summaryrefslogtreecommitdiffstats
path: root/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.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/pcsimporter/qt4importer/kdevqt4importer.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/pcsimporter/qt4importer/kdevqt4importer.cpp')
-rw-r--r--languages/cpp/pcsimporter/qt4importer/kdevqt4importer.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.cpp b/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.cpp
index f4fedea0..d4635ba4 100644
--- a/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.cpp
+++ b/languages/cpp/pcsimporter/qt4importer/kdevqt4importer.cpp
@@ -18,13 +18,13 @@
#include <kprocess.h>
#include <kdebug.h>
-#include <qtextstream.h>
-#include <qlabel.h>
-#include <qdir.h>
+#include <tqtextstream.h>
+#include <tqlabel.h>
+#include <tqdir.h>
K_EXPORT_COMPONENT_FACTORY( libkdevqt4importer, KGenericFactory<KDevQt4Importer>( "kdevqt4importer" ) )
-KDevQt4Importer::KDevQt4Importer( QObject * parent, const char * name, const QStringList& )
+KDevQt4Importer::KDevQt4Importer( TQObject * parent, const char * name, const TQStringList& )
: KDevPCSImporter( parent, name )
{
m_qtfile = 0;
@@ -38,16 +38,16 @@ KDevQt4Importer::~KDevQt4Importer()
m_qtfile = 0;
}
-QStringList KDevQt4Importer::fileList()
+TQStringList KDevQt4Importer::fileList()
{
if( !m_settings )
- return QStringList();
+ return TQStringList();
if (m_qtfile)
delete m_qtfile;
KTempFile ifile;
- QTextStream &is = *ifile.textStream();
+ TQTextStream &is = *ifile.textStream();
is << "#include <QtCore/qobjectdefs.h>\n"
<< "#undef Q_SLOTS\n#undef Q_SIGNALS\n#undef slots\n#undef signals"
@@ -70,13 +70,13 @@ QStringList KDevQt4Importer::fileList()
m_qtfile = new KTempFile();
// include paths
- QStringList paths = includePaths();
- for (QStringList::Iterator it = paths.begin(); it != paths.end(); ++it)
+ TQStringList paths = includePaths();
+ for (TQStringList::Iterator it = paths.begin(); it != paths.end(); ++it)
proc << "-I" << *it;
ifile.close();
- QString o;
+ TQString o;
o += "-o";
o += m_qtfile->name();
@@ -86,12 +86,12 @@ QStringList KDevQt4Importer::fileList()
return m_qtfile->name();
}
-QStringList KDevQt4Importer::includePaths()
+TQStringList KDevQt4Importer::includePaths()
{
if( !m_settings || !m_qtfile)
- return QStringList();
+ return TQStringList();
- QStringList includePaths;
+ TQStringList includePaths;
includePaths.push_back( m_settings->qtDir() );
includePaths.push_back( m_settings->qtDir() + "/Qt" );
@@ -99,7 +99,7 @@ QStringList KDevQt4Importer::includePaths()
return includePaths;
}
-QWidget * KDevQt4Importer::createSettingsPage( QWidget * parent, const char * name )
+TQWidget * KDevQt4Importer::createSettingsPage( TQWidget * parent, const char * name )
{
m_settings = new SettingsDialog( parent, name );
return m_settings;