"Shutdown" window */
| 138 | |
| 139 | /** "Shutdown" window */ |
| 140 | ShutdownWindow::ShutdownWindow(QWidget *parent, Qt::WindowFlags f): |
| 141 | QWidget(parent, f) |
| 142 | { |
| 143 | QVBoxLayout *layout = new QVBoxLayout(); |
| 144 | layout->addWidget(new QLabel( |
| 145 | tr("%1 is shutting down…").arg(PACKAGE_NAME) + "<br /><br />" + |
| 146 | tr("Do not shut down the computer until this window disappears."))); |
| 147 | setLayout(layout); |
| 148 | |
| 149 | GUIUtil::handleCloseWindowShortcut(this); |
| 150 | } |
| 151 | |
| 152 | QWidget* ShutdownWindow::showShutdownWindow(QMainWindow* window) |
| 153 | { |
nothing calls this directly
no test coverage detected