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

Method ShowIfReady

win/Qt/qt_main.cpp:1440–1463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1438}
1439
1440void NetHackQtMainWindow::ShowIfReady()
1441{
1442 if (message && map && status) {
1443 QWidget* hp = qt_compact_mode ? static_cast<QWidget *>(stack)
1444 : static_cast<QWidget *>(hsplitter);
1445 QWidget* vp = qt_compact_mode ? static_cast<QWidget *>(stack)
1446 : static_cast<QWidget *>(vsplitter);
1447 message->Widget()->setParent(hp);
1448 map->Widget()->setParent(vp);
1449 status->Widget()->setParent(hp);
1450 if ( qt_compact_mode ) {
1451 message->setMap(map);
1452 stack->addWidget(map->Widget());
1453 stack->addWidget(message->Widget());
1454 stack->addWidget(status->Widget());
1455 raiseMap();
1456 } else {
1457 layout();
1458 }
1459 showNormal();
1460 } else if (isVisible()) {
1461 hide();
1462 }
1463}
1464
1465} // namespace nethack_qt_

Callers

nothing calls this directly

Calls 2

WidgetMethod · 0.45
setMapMethod · 0.45

Tested by

no test coverage detected