| 674 | bool NetHackQtMapWindow::Destroy() { return false; } |
| 675 | |
| 676 | NetHackQtMapWindow::NetHackQtMapWindow(NetHackQtClickBuffer& click_sink) : |
| 677 | clicksink(click_sink), |
| 678 | change(10), |
| 679 | rogue_font(0) |
| 680 | { |
| 681 | viewport.addChild(this); |
| 682 | |
| 683 | QPalette palette; |
| 684 | palette.setColor(backgroundRole(), Qt::black); |
| 685 | setPalette(palette); |
| 686 | palette.setColor(viewport.backgroundRole(), Qt::black); |
| 687 | viewport.setPalette(palette); |
| 688 | |
| 689 | pet_annotation = QPixmap(qt_compact_mode ? pet_mark_small_xpm |
| 690 | : pet_mark_xpm); |
| 691 | pile_annotation = QPixmap(pile_mark_xpm); |
| 692 | |
| 693 | cursor.setX(0); |
| 694 | cursor.setY(0); |
| 695 | Clear(); |
| 696 | |
| 697 | connect(qt_settings,SIGNAL(tilesChanged()),this,SLOT(updateTiles())); |
| 698 | connect(&viewport, SIGNAL(contentsMoving(int,int)), this, |
| 699 | SLOT(moveMessages(int,int))); |
| 700 | |
| 701 | updateTiles(); |
| 702 | //setFocusPolicy(Qt::StrongFocus); |
| 703 | } |
| 704 | |
| 705 | void NetHackQtMapWindow::moveMessages(int x, int y) |
| 706 | { |
nothing calls this directly
no test coverage detected