summaryrefslogtreecommitdiffstats
path: root/src/kvirc/ui/kvi_ircview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvirc/ui/kvi_ircview.cpp')
-rw-r--r--src/kvirc/ui/kvi_ircview.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/kvirc/ui/kvi_ircview.cpp b/src/kvirc/ui/kvi_ircview.cpp
index 8a37cd6..255b588 100644
--- a/src/kvirc/ui/kvi_ircview.cpp
+++ b/src/kvirc/ui/kvi_ircview.cpp
@@ -546,7 +546,7 @@ void KviIrcView::stopLogging()
gzclose(file);
m_pLogFile->remove();
} else {
- debug("Cannot open compressed stream");
+ tqDebug("Cannot open compressed stream");
}
}
}
@@ -599,7 +599,7 @@ void KviIrcView::flushLog()
gzclose(file);
m_pLogFile->remove();
} else {
- debug("Cannot open compressed stream");
+ tqDebug("Cannot open compressed stream");
}
}
m_pLogFile->open(IO_Append|IO_WriteOnly);
@@ -718,7 +718,7 @@ void KviIrcView::add2Log(const TQString &szBuffer,int iMsgType)
{
TQString szToWrite=TQString("%1 %2\n").arg(iMsgType).arg(szBuffer);
KviTQCString szTmp = KviTQString::toUtf8(szToWrite);
- if(m_pLogFile->writeBlock(szTmp.data(),szTmp.length())==-1) debug("WARNING : Can not write to the log file.");
+ if(m_pLogFile->writeBlock(szTmp.data(),szTmp.length())==-1) tqDebug("WARNING : Can not write to the log file.");
}
//=============================================================================
@@ -863,10 +863,10 @@ void KviIrcView::setTimestamp(bool bTimestamp)
// nAttributes += (l->uChunkCount);
// l = l->pNext;
// }
-// debug("\n\nLines = %u (%u bytes - %u KB) (avg %u bytes per line)",nLines,nAlloc,nAlloc / 1024,nLines ? (nAlloc / nLines) : 0);
-// debug("string bytes = %u (%u KB)",nStringBytes,nStringBytes / 1024);
-// debug("attributes = %u (%u bytes - %u KB)",nAttributes,nAttrBytes,nAttrBytes / 1024);
-// debug("blocks = %u (%u bytes - %u KB)\n",nBlocks,nBlockBytes,nBlockBytes / 1024);
+// tqDebug("\n\nLines = %u (%u bytes - %u KB) (avg %u bytes per line)",nLines,nAlloc,nAlloc / 1024,nLines ? (nAlloc / nLines) : 0);
+// tqDebug("string bytes = %u (%u KB)",nStringBytes,nStringBytes / 1024);
+// tqDebug("attributes = %u (%u bytes - %u KB)",nAttributes,nAttrBytes,nAttrBytes / 1024);
+// tqDebug("blocks = %u (%u bytes - %u KB)\n",nBlocks,nBlockBytes,nBlockBytes / 1024);
}
*/
@@ -3052,7 +3052,7 @@ void KviIrcView::paintEvent(TQPaintEvent *p)
//case KVI_TEXT_ICON:
//case KVI_TEXT_UNICON:
// does nothing
- //debug("Have a block with ICON/UNICON attr");
+ //tqDebug("Have a block with ICON/UNICON attr");
//break;
}
@@ -3281,7 +3281,7 @@ no_selection_paint:
moredown += ((m_iFontLineSpacing - daIcon->height()) / 2);
pa.drawPixmap(curLeftCoord + m_iIconSideSpacing,imageYPos + moredown,*(daIcon));
- //debug("SHifting by %d",block->block_width);
+ //tqDebug("SHifting by %d",block->block_width);
curLeftCoord += block->block_width;
} else {
@@ -3495,7 +3495,7 @@ void KviIrcView::calculateLineWraps(KviIrcViewLine *ptr,int maxWidth)
if(curLineWidth < maxWidth)
{
- //debug("Block of %d pix and len %d with type %d",ptr->pBlocks[ptr->iBlockCount].block_width,ptr->pBlocks[ptr->iBlockCount].block_len,ptr->pChunks[curAttrBlock].type);
+ //tqDebug("Block of %d pix and len %d with type %d",ptr->pBlocks[ptr->iBlockCount].block_width,ptr->pBlocks[ptr->iBlockCount].block_len,ptr->pChunks[curAttrBlock].type);
//Ok....proceed to next block
ptr->pBlocks[ptr->iBlockCount].block_len = curBlockLen;
ptr->pBlocks[ptr->iBlockCount].block_width = curBlockWidth;
@@ -3712,7 +3712,7 @@ bool KviIrcView::checkSelectionBlock(KviIrcViewLine * line,int left,int bottom,i
}
m_pWrappedBlockSelectionInfo->part_2_length = line->pBlocks[bufIndex].block_len-m_pWrappedBlockSelectionInfo->part_1_length;
m_pWrappedBlockSelectionInfo->part_2_width = line->pBlocks[bufIndex].block_width-m_pWrappedBlockSelectionInfo->part_1_width;
- //debug("%d",m_pWrappedBlockSelectionInfo->part_2_width);
+ //tqDebug("%d",m_pWrappedBlockSelectionInfo->part_2_width);
return true;
}
//Selection begins in THIS BLOCK!
@@ -4803,7 +4803,7 @@ void KviIrcView::mouseReleaseEvent(TQMouseEvent *)
void KviIrcView::mouseMoveEvent(TQMouseEvent *e)
{
-// debug("Pos : %d,%d",e->pos().x(),e->pos().y());
+// tqDebug("Pos : %d,%d",e->pos().x(),e->pos().y());
if(m_bMouseIsDown && (e->state() & Qt::LeftButton)) // m_bMouseIsDown MUST BE true...(otherwise the mouse entered the window with the button pressed ?)
{