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

Method NetHackQtInvUsageWindow

win/Qt/qt_inv.cpp:52–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52NetHackQtInvUsageWindow::NetHackQtInvUsageWindow(QWidget *parent) :
53 QWidget(parent)
54{
55 setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
56 // needed to enable tool tips
57 setMouseTracking(true);
58
59 /*
60 * TODO:
61 * Add support for clicking on a paperdoll cell and have that
62 * run itemactions(invent.c) for the object shown in the cell.
63 */
64
65 // paperdoll is 6x3 but the indices are column oriented: 0..2x0..5
66 for (int x = 0; x <= 2; ++x)
67 for (int y = 0; y <= 5; ++y)
68 tips[x][y] = NULL;
69}
70
71NetHackQtInvUsageWindow::~NetHackQtInvUsageWindow()
72{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected