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

Method mouseMoveEvent

outdated/win/Qt3/qt3_win.cpp:3150–3168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3148}
3149
3150void NetHackQtMenuWindow::mouseMoveEvent(QMouseEvent* event)
3151{
3152 if (pressed>=0) {
3153 int col=findCol(event->pos().x());
3154 int row=findRow(event->pos().y());
3155
3156 if (row>=0 && col>=0) {
3157 if (pressed!=row) {
3158 // reset to initial state
3159 if (item[pressed].selected!=was_sel)
3160 ToggleSelect(pressed);
3161 } else {
3162 // reset to new state
3163 if (item[pressed].selected==was_sel)
3164 ToggleSelect(pressed);
3165 }
3166 }
3167 }
3168}
3169
3170
3171class NetHackQtTextListBox : public QListBox {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected