ENHANCED_PAPERDOLL - event handler is necessary to support tool tips
| 318 | |
| 319 | // ENHANCED_PAPERDOLL - event handler is necessary to support tool tips |
| 320 | bool 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 ('*') |
| 335 | void NetHackQtInvUsageWindow::mousePressEvent(QMouseEvent *event UNUSED) |
nothing calls this directly
no outgoing calls
no test coverage detected