| 50 | } |
| 51 | |
| 52 | NetHackQtInvUsageWindow::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 | |
| 71 | NetHackQtInvUsageWindow::~NetHackQtInvUsageWindow() |
| 72 | { |
nothing calls this directly
no outgoing calls
no test coverage detected