| 3148 | } |
| 3149 | |
| 3150 | void 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 | |
| 3171 | class NetHackQtTextListBox : public QListBox { |
nothing calls this directly
no outgoing calls
no test coverage detected