summaryrefslogtreecommitdiffstats
path: root/languages/kjssupport/jscodecompletion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/kjssupport/jscodecompletion.cpp')
-rw-r--r--languages/kjssupport/jscodecompletion.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/languages/kjssupport/jscodecompletion.cpp b/languages/kjssupport/jscodecompletion.cpp
index 8fd59f57..5717858a 100644
--- a/languages/kjssupport/jscodecompletion.cpp
+++ b/languages/kjssupport/jscodecompletion.cpp
@@ -10,14 +10,14 @@
//
//
#include "jscodecompletion.h"
-#include <qwhatsthis.h>
+#include <tqwhatsthis.h>
-#include <qfileinfo.h>
-#include <qstringlist.h>
-#include <qtextstream.h>
-#include <qtimer.h>
+#include <tqfileinfo.h>
+#include <tqstringlist.h>
+#include <tqtextstream.h>
+#include <tqtimer.h>
#include <kapplication.h>
-#include <qregexp.h>
+#include <tqregexp.h>
#include <kiconloader.h>
#include <klocale.h>
@@ -37,8 +37,8 @@
#include <kdevelop/domutil.h>
#include <kdevelop/codemodel.h>
-JSCodeCompletion::JSCodeCompletion(QObject *parent, const char *name)
- : QObject(parent, name)
+JSCodeCompletion::JSCodeCompletion(TQObject *parent, const char *name)
+ : TQObject(parent, name)
{
m_argWidgetShow = false;
m_completionBoxShow=false;
@@ -82,22 +82,22 @@ void JSCodeCompletion::setActiveEditorPart( KParts::Part * part )
}
disconnect(part->widget(), 0, this, 0 ); // to make sure that it is't connected twice
- connect(part->widget(), SIGNAL(cursorPositionChanged()),
- this, SLOT(cursorPositionChanged()));
- connect(part->widget(), SIGNAL(argHintHidden()), this, SLOT(argHintHidden()));
- connect(part->widget(), SIGNAL(completionAborted()), this, SLOT(completionBoxAbort()));
- connect(part->widget(), SIGNAL(completionDone()), this, SLOT(completionBoxHidden()));
+ connect(part->widget(), TQT_SIGNAL(cursorPositionChanged()),
+ this, TQT_SLOT(cursorPositionChanged()));
+ connect(part->widget(), TQT_SIGNAL(argHintHidden()), this, TQT_SLOT(argHintHidden()));
+ connect(part->widget(), TQT_SIGNAL(completionAborted()), this, TQT_SLOT(completionBoxAbort()));
+ connect(part->widget(), TQT_SIGNAL(completionDone()), this, TQT_SLOT(completionBoxHidden()));
}
-QValueList< KTextEditor::CompletionEntry > JSCodeCompletion::getVars( const QString & startText )
+TQValueList< KTextEditor::CompletionEntry > JSCodeCompletion::getVars( const TQString & startText )
{
kdDebug() << "getVars for " << startText << endl;
- QValueList<KTextEditor::CompletionEntry> varList;
+ TQValueList<KTextEditor::CompletionEntry> varList;
/*
- QValueList<QString>::ConstIterator it;
+ TQValueList<TQString>::ConstIterator it;
for (it = m_vars.begin(); it != m_vars.end(); ++it)
{
- QString var = "$" + (*it);
+ TQString var = "$" + (*it);
kdDebug() << "Compair " << var << endl;
if( var.startsWith( startText ))
{
@@ -119,7 +119,7 @@ void JSCodeCompletion::cursorPositionChanged( )
m_cursorInterface->cursorPositionReal(&line, &col);
kdDebug() << "JSCodeCompletion::cursorPositionChanged:" << line << ":" << col << endl;
- QString lineStr = m_editInterface->textLine(line);
+ TQString lineStr = m_editInterface->textLine(line);
if(lineStr.isNull() || lineStr.isEmpty())
{
kdDebug() << "No Text..." << endl;
@@ -127,8 +127,8 @@ void JSCodeCompletion::cursorPositionChanged( )
}
// if(m_config->getCodeCompletion())
// {
- QString restLine = lineStr.mid(col);
- QString prevText = lineStr.mid(0,col);
+ TQString restLine = lineStr.mid(col);
+ TQString prevText = lineStr.mid(0,col);
if(restLine.left(1) != " " && restLine.left(1) != "\t" && !restLine.isNull())
{
@@ -136,12 +136,12 @@ void JSCodeCompletion::cursorPositionChanged( )
return;
}
- QRegExp prevReg("([\\d\\w]*)[.]$");
+ TQRegExp prevReg("([\\d\\w]*)[.]$");
if (prevReg.search( prevText ) != -1 )
{
// We are in completion mode
- QString startMatch = prevReg.cap(0);
+ TQString startMatch = prevReg.cap(0);
kdDebug() << "Matching: " << startMatch << endl;
m_completionBoxShow=true;
m_codeInterface->showCompletionBox(getVars(startMatch),2);