summaryrefslogtreecommitdiffstats
path: root/src/modules/editor
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-10-29 18:21:41 +0100
committerSlávek Banko <slavek.banko@axis.cz>2018-10-29 18:21:41 +0100
commit7cc4356bc2eceb5a66c2263bff44aa472d2ca290 (patch)
tree08047b60c477dc7026c7623e25770825b5ce7e5c /src/modules/editor
parent3b217bbf505473102331a7e2ed274fe63a4c3457 (diff)
downloadkvirc-7cc4356bc2eceb5a66c2263bff44aa472d2ca290.tar.gz
kvirc-7cc4356bc2eceb5a66c2263bff44aa472d2ca290.zip
Fix build with a clean TQt namespace.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/modules/editor')
-rw-r--r--src/modules/editor/libkvieditor.cpp6
-rw-r--r--src/modules/editor/scripteditor.cpp18
2 files changed, 12 insertions, 12 deletions
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 9d704ec7..5e6e3c65 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)