----------------------------------------------------------------------------
| 6568 | } |
| 6569 | //---------------------------------------------------------------------------- |
| 6570 | void QAsmView::drawLabelLine( QPainter *painter, int x, int y, const char *txt ) |
| 6571 | { |
| 6572 | int i=0; |
| 6573 | char c[2]; |
| 6574 | |
| 6575 | c[0] = 0; c[1] = 0; |
| 6576 | |
| 6577 | // Label Text |
| 6578 | painter->setPen( this->palette().color(QPalette::WindowText)); |
| 6579 | |
| 6580 | while ( (txt[i] != 0) ) |
| 6581 | { |
| 6582 | if ( isalnum(txt[i]) || (txt[i] == '_') ) |
| 6583 | { |
| 6584 | painter->setPen( labelColor ); |
| 6585 | } |
| 6586 | else |
| 6587 | { |
| 6588 | painter->setPen( this->palette().color(QPalette::WindowText)); |
| 6589 | } |
| 6590 | c[0] = txt[i]; |
| 6591 | painter->drawText( x, y, tr(c) ); |
| 6592 | i++; x += pxCharWidth; |
| 6593 | } |
| 6594 | } |
| 6595 | //---------------------------------------------------------------------------- |
| 6596 | void QAsmView::drawCommentLine( QPainter *painter, int x, int y, const char *txt ) |
| 6597 | { |