| 606 | } |
| 607 | |
| 608 | void NetHackQtMapWindow2::putMessage(int attr UNUSED, const QString& text) |
| 609 | { |
| 610 | if (!messages.isEmpty()) |
| 611 | messages += "\n"; |
| 612 | messages += QString(text).replace(QChar(0x200B), ""); |
| 613 | #if 0 |
| 614 | QFontMetrics fm = fontMetrics(); |
| 615 | messages_rect = fm.boundingRect(viewport.contentsX(), viewport.contentsY(), |
| 616 | viewport.width(), 0, |
| 617 | (Qt::TextWordWrap | Qt::AlignTop |
| 618 | | Qt::AlignLeft | Qt::TextDontClip), |
| 619 | messages); |
| 620 | update(messages_rect); |
| 621 | #endif |
| 622 | } |
| 623 | |
| 624 | void NetHackQtMapWindow2::clickCursor() |
| 625 | { |