----------------------------------------------------------------------------
| 6594 | } |
| 6595 | //---------------------------------------------------------------------------- |
| 6596 | void QAsmView::drawCommentLine( QPainter *painter, int x, int y, const char *txt ) |
| 6597 | { |
| 6598 | int i=0; |
| 6599 | char c[2]; |
| 6600 | |
| 6601 | c[0] = 0; c[1] = 0; |
| 6602 | |
| 6603 | // Comment Text |
| 6604 | painter->setPen( commentColor ); |
| 6605 | |
| 6606 | while ( (txt[i] != 0) ) |
| 6607 | { |
| 6608 | c[0] = txt[i]; |
| 6609 | painter->drawText( x, y, tr(c) ); |
| 6610 | i++; x += pxCharWidth; |
| 6611 | } |
| 6612 | } |
| 6613 | //---------------------------------------------------------------------------- |
| 6614 | void QAsmView::paintEvent(QPaintEvent *event) |
| 6615 | { |