MCPcopy Create free account
hub / github.com/NetHack/NetHack / NetHackQtMapWindow

Method NetHackQtMapWindow

win/Qt/qt_map.cpp:676–703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674bool NetHackQtMapWindow::Destroy() { return false; }
675
676NetHackQtMapWindow::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
705void NetHackQtMapWindow::moveMessages(int x, int y)
706{

Callers

nothing calls this directly

Calls 2

setColorMethod · 0.80
setPaletteMethod · 0.80

Tested by

no test coverage detected