From eb6ac02bb511f14a2506fb2f3c94d84d469e42cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 29 Oct 2018 18:21:41 +0100 Subject: Fix build with a clean TQt namespace. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 7cc4356bc2eceb5a66c2263bff44aa472d2ca290) --- src/modules/editor/libkvieditor.cpp | 6 +++--- src/modules/editor/scripteditor.cpp | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'src/modules/editor') diff --git a/src/modules/editor/libkvieditor.cpp b/src/modules/editor/libkvieditor.cpp index 8d087476..e265a8ff 100644 --- a/src/modules/editor/libkvieditor.cpp +++ b/src/modules/editor/libkvieditor.cpp @@ -46,12 +46,12 @@ static bool editor_module_cleanup(KviModule *m) TQObject * w = g_pScriptEditorWindowList->first()->parent();; while(w) { - //debug("%s %s %i %s",__FILE__,__FUNCTION__,__LINE__,w->className()); + //tqDebug("%s %s %i %s",__FILE__,__FUNCTION__,__LINE__,w->className()); if(w->inherits("KviWindow")) { - // debug("%s %s %i",__FILE__,__FUNCTION__,__LINE__); + // tqDebug("%s %s %i",__FILE__,__FUNCTION__,__LINE__); ((KviWindow *)w)->close(); - // debug("%s %s %i",__FILE__,__FUNCTION__,__LINE__); + // tqDebug("%s %s %i",__FILE__,__FUNCTION__,__LINE__); break; } w = w->parent(); diff --git a/src/modules/editor/scripteditor.cpp b/src/modules/editor/scripteditor.cpp index 3150055b..f6875265 100644 --- a/src/modules/editor/scripteditor.cpp +++ b/src/modules/editor/scripteditor.cpp @@ -119,7 +119,7 @@ void KviCompletionBox::updateContents(TQString buffer) if(szModule.isEmpty()) KviKvsKernel::instance()->completeFunction(buffer,&list); else - debug("we need a module completion!"); + tqDebug("we need a module completion!"); for ( TQString* szCurrent = list.first(); szCurrent; szCurrent = list.next() ) { szCurrent->prepend('$'); @@ -133,19 +133,19 @@ void KviCompletionBox::updateContents(TQString buffer) if(szModule.isEmpty()) KviKvsKernel::instance()->completeCommand(buffer,&list); else - debug("we need a module completion!"); + tqDebug("we need a module completion!"); for ( TQString* szCurrent = list.first(); szCurrent; szCurrent = list.next() ) { szCurrent->append(' '); insertItem(*szCurrent); } } -// debug("%s %s %i %i",__FILE__,__FUNCTION__,__LINE__,count()); +// tqDebug("%s %s %i %i",__FILE__,__FUNCTION__,__LINE__,count()); } void KviCompletionBox::keyPressEvent(TQKeyEvent * e) { -// debug("%s %s %i %x",__FILE__,__FUNCTION__,__LINE__,e->key()); +// tqDebug("%s %s %i %x",__FILE__,__FUNCTION__,__LINE__,e->key()); switch(e->key()) { case TQt::Key_Escape: @@ -384,7 +384,7 @@ void KviScriptEditorWidget::keyPressEvent(TQKeyEvent * e) insertAt(szCur,para,0); setCursorPosition(para,szCur.length()+pos); } -// debug("|%i|",pos); +// tqDebug("|%i|",pos); } return; default: @@ -423,7 +423,7 @@ void KviScriptEditorWidget::contentsMousePressEvent(TQMouseEvent *e) if (l.count() != 1) buffer=""; else buffer=*(l.at(0)); } - //debug (buffer); + //tqDebug (buffer); m_szHelp=buffer; } KviTalTextEdit::contentsMousePressEvent(e); @@ -468,7 +468,7 @@ bool KviScriptEditorWidget::contextSensitiveHelp() const TQString parse; KviTQString::sprintf(parse,"timer -s (help,0){ help -s %Q; }",&buffer); - debug ("parsing %s",parse.latin1()); + tqDebug ("parsing %s",parse.latin1()); KviKvsScript::run(parse,(KviWindow*)g_pApp->activeConsole()); return true; @@ -478,7 +478,7 @@ bool KviScriptEditorWidget::contextSensitiveHelp() const void KviScriptEditorWidget::getWordOnCursor(TQString &buffer,int index) const { TQRegExp re("[ \t=,\\(\\)\"}{\\[\\]\r\n+-*><;@!]"); - //debug("BUFFER IS %s",buffer.utf8().data()); + //tqDebug("BUFFER IS %s",buffer.utf8().data()); int start = buffer.findRev(re,index); int end = buffer.find(re,index); @@ -491,7 +491,7 @@ void KviScriptEditorWidget::getWordOnCursor(TQString &buffer,int index) const tmp = buffer.mid(start,end-start); } buffer = tmp; - //debug("BUFFER NOW IS %s",buffer.utf8().data()); + //tqDebug("BUFFER NOW IS %s",buffer.utf8().data()); } void KviScriptEditorWidget::completition(bool bCanComplete) -- cgit v1.2.1