MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / showShutdownWindow

Method showShutdownWindow

src/qt/utilitydialog.cpp:160–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160QWidget *ShutdownWindow::showShutdownWindow(BitcoinGUI *window)
161{
162 if (!window)
163 return nullptr;
164
165 // Show a simple window indicating shutdown status
166 QWidget *shutdownWindow = new ShutdownWindow();
167 shutdownWindow->setWindowTitle(window->windowTitle());
168
169 // Center shutdown window at where main window was
170 const QPoint global = window->mapToGlobal(window->rect().center());
171 shutdownWindow->move(global.x() - shutdownWindow->width() / 2, global.y() - shutdownWindow->height() / 2);
172 shutdownWindow->show();
173 return shutdownWindow;
174}
175
176void ShutdownWindow::closeEvent(QCloseEvent *event)
177{

Callers

nothing calls this directly

Calls 2

moveMethod · 0.80
heightMethod · 0.80

Tested by

no test coverage detected