From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- languages/kjssupport/jscodecompletion.cpp | 44 +++++++++++++++---------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'languages/kjssupport/jscodecompletion.cpp') 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 +#include -#include -#include -#include -#include +#include +#include +#include +#include #include -#include +#include #include #include @@ -37,8 +37,8 @@ #include #include -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 varList; + TQValueList varList; /* - QValueList::ConstIterator it; + TQValueList::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); -- cgit v1.2.1