* Shows the details of the currently hovered save. * @param action Pointer to an action. */
| 283 | * @param action Pointer to an action. |
| 284 | */ |
| 285 | void ListGamesState::lstSavesMouseOver(Action *) |
| 286 | { |
| 287 | int sel = _lstSaves->getSelectedRow() - _firstValidRow; |
| 288 | std::wstring wstr; |
| 289 | if (sel >= 0 && sel < (int)_saves.size()) |
| 290 | { |
| 291 | wstr = _saves[sel].details; |
| 292 | } |
| 293 | _txtDetails->setText(tr("STR_DETAILS").arg(wstr)); |
| 294 | } |
| 295 | |
| 296 | /** |
| 297 | * Clears the details. |
nothing calls this directly
no test coverage detected