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

Method event

win/Qt/qt_inv.cpp:320–332  ·  view source on GitHub ↗

ENHANCED_PAPERDOLL - event handler is necessary to support tool tips

Source from the content-addressed store, hash-verified

318
319// ENHANCED_PAPERDOLL - event handler is necessary to support tool tips
320bool NetHackQtInvUsageWindow::event(QEvent *event)
321{
322#ifdef ENHANCED_PAPERDOLL
323 if (event->type() == QEvent::ToolTip) {
324 QHelpEvent *tipevent = static_cast <QHelpEvent *> (event);
325 return tooltip_event(tipevent);
326 }
327#endif
328 // with this routine intercepting events, we need to pass along
329 // paint and mouse-press events to have them handled
330 return QWidget::event(event);
331
332}
333
334// ENHANCED_PAPERDOLL - clicking on the PaperDoll runs #seeall ('*')
335void NetHackQtInvUsageWindow::mousePressEvent(QMouseEvent *event UNUSED)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected