| 406 | } |
| 407 | |
| 408 | void bringToFront(QWidget* w) |
| 409 | { |
| 410 | #ifdef Q_OS_MAC |
| 411 | ForceActivation(); |
| 412 | #endif |
| 413 | |
| 414 | if (w) { |
| 415 | // activateWindow() (sometimes) helps with keyboard focus on Windows |
| 416 | if (w->isMinimized()) { |
| 417 | w->showNormal(); |
| 418 | } else { |
| 419 | w->show(); |
| 420 | } |
| 421 | w->activateWindow(); |
| 422 | w->raise(); |
| 423 | } |
| 424 | } |
| 425 | |
| 426 | void handleCloseWindowShortcut(QWidget* w) |
| 427 | { |
no outgoing calls
no test coverage detected