summaryrefslogtreecommitdiffstats
path: root/languages/ada/adasupportpart.cpp
diff options
context:
space:
mode:
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 ){