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

Method redoStatus

win/Qt/qt_main.cpp:1250–1264  ·  view source on GitHub ↗

called when 'statuslines' changes from 2 to 3 or vice versa; simpler to destroy and recreate the status window than to adjust existing fields

Source from the content-addressed store, hash-verified

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
1250NetHackQtWindow *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
1267void NetHackQtMainWindow::resizePaperDoll(bool showdoll)

Callers 1

qt_preference_updateMethod · 0.80

Calls 1

WidgetMethod · 0.45

Tested by

no test coverage detected