summaryrefslogtreecommitdiffstats
path: root/languages/ada/adasupportpart.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
commit48d4a26399959121f33d2bc3bfe51c7827b654fc (patch)
tree5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /languages/ada/adasupportpart.cpp
parent7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff)
downloadtdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz
tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/ada/adasupportpart.cpp')
-rw-r--r--languages/ada/adasupportpart.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/languages/ada/adasupportpart.cpp b/languages/ada/adasupportpart.cpp
index 7c7f4198..35b34c44 100644
--- a/languages/ada/adasupportpart.cpp
+++ b/languages/ada/adasupportpart.cpp
@@ -50,8 +50,8 @@ struct AdaSupportPartData {
AdaSupportPartData () : problemReporter (0) {}
};
-AdaSupportPart::AdaSupportPart (TQObject *parent, const char *name, const TQStringList &)
- : KDevLanguageSupport (&data, parent, name ? name : "AdaSupportPart"), d (new AdaSupportPartData())
+AdaSupportPart::AdaSupportPart (TQObject *tqparent, const char *name, const TQStringList &)
+ : KDevLanguageSupport (&data, tqparent, name ? name : "AdaSupportPart"), d (new AdaSupportPartData())
{
setInstance (AdaSupportPartFactory::instance ());
@@ -78,7 +78,7 @@ AdaSupportPart::AdaSupportPart (TQObject *parent, const char *name, const TQStri
// a small hack (robe)
//classStore ()->globalScope ()->setName ("(default packages)");
//classStore ()->addScope (classStore ()->globalScope ());
- //classStore ()->globalScope ()->setName (TQString::null);
+ //classStore ()->globalScope ()->setName (TQString());
}
@@ -143,7 +143,7 @@ void AdaSupportPart::initialParse ()
TQString fn = project ()->projectDirectory () + "/" + *it;
maybeParse (fn);
- kapp->processEvents (500);
+ kapp->tqprocessEvents (500);
}
emit updatedSourceInfo();
@@ -167,7 +167,7 @@ void AdaSupportPart::maybeParse (const TQString &fileName)
{
kdDebug () << "AdaSupportPart::maybeParse: " << fileName << endl;
- if (!fileExtensions ().contains (TQFileInfo (fileName).extension ()))
+ if (!fileExtensions ().tqcontains (TQFileInfo (fileName).extension ()))
return;
// mainWindow ()->statusBar ()->message (i18n ("Parsing file: %1").arg (fileName));
@@ -250,7 +250,7 @@ void AdaSupportPart::parse (const TQString &fileName)
}
} catch (antlr::ANTLRException& ex) {
kdDebug () << "*exception*: " << ex.toString ().c_str () << endl;
- d->problemReporter->reportError (TQString::fromLatin1( ex.getMessage ().c_str() ),
+ d->problemReporter->reportError (TQString::tqfromLatin1( ex.getMessage ().c_str() ),
fileName,
lexer.getLine (),
lexer.getColumn ());
@@ -285,7 +285,7 @@ void AdaSupportPart::parseContents (const TQString& contents, const TQString& fi
} catch (antlr::ANTLRException& ex) {
kdDebug () << "*exception*: " << ex.toString ().c_str () << endl;
- d->problemReporter->reportError (TQString::fromLatin1( ex.getMessage().c_str() ),
+ d->problemReporter->reportError (TQString::tqfromLatin1( ex.getMessage().c_str() ),
fileName,
lexer.getLine (),
lexer.getColumn ());
@@ -298,7 +298,7 @@ void AdaSupportPart::savedFile (const KURL& fileName)
{
kdDebug () << "AdaSupportPart::savedFile ()" << endl;
- if (project ()->allFiles ().contains (fileName.path().mid (project ()->projectDirectory ().length () + 1))) {
+ if (project ()->allFiles ().tqcontains (fileName.path().mid (project ()->projectDirectory ().length () + 1))) {
maybeParse (fileName.path());
emit updatedSourceInfo();
}
@@ -328,7 +328,7 @@ void AdaSupportPart::saveProjectSourceInfo( )
return;
TQDataStream stream( &f );
- TQMap<TQString, Q_ULONG> offsets;
+ TQMap<TQString, TQ_ULONG> offsets;
TQString pcs( "PCS" );
stream << pcs << KDEV_PCS_VERSION;
@@ -336,13 +336,13 @@ void AdaSupportPart::saveProjectSourceInfo( )
stream << int( fileList.size() );
for( FileList::ConstIterator it=fileList.begin(); it!=fileList.end(); ++it ){
const FileDom dom = (*it);
-#if QT_VERSION >= 0x030100
+#if [[[TQT_VERSION IS DEPRECATED]]] >= 0x030100
stream << dom->name() << m_timestamp[ dom->name() ].toTime_t();
#else
stream << dom->name() << toTime_t(m_timestamp[ dom->name() ]);
#endif
offsets.insert( dom->name(), stream.device()->at() );
- stream << (Q_ULONG)0; // dummy offset
+ stream << (TQ_ULONG)0; // dummy offset
}
for( FileList::ConstIterator it=fileList.begin(); it!=fileList.end(); ++it ){