called when 'statuslines' changes from 2 to 3 or vice versa; simpler to destroy and recreate the status window than to adjust existing fields
| 1248 | // called when 'statuslines' changes from 2 to 3 or vice versa; simpler to |
| 1249 | // destroy and recreate the status window than to adjust existing fields |
| 1250 | NetHackQtWindow *NetHackQtMainWindow::redoStatus() |
| 1251 | { |
| 1252 | NetHackQtStatusWindow *oldstatus = this->status; |
| 1253 | if (!oldstatus) |
| 1254 | return NULL; // not ready yet? |
| 1255 | this->status = new NetHackQtStatusWindow; |
| 1256 | |
| 1257 | if (!qt_compact_mode) |
| 1258 | hsplitter->replaceWidget(2, this->status->Widget()); |
| 1259 | |
| 1260 | delete oldstatus; |
| 1261 | ShowIfReady(); |
| 1262 | |
| 1263 | return (NetHackQtWindow *) this->status; |
| 1264 | } |
| 1265 | #endif |
| 1266 | |
| 1267 | void NetHackQtMainWindow::resizePaperDoll(bool showdoll) |
no test coverage detected