MCPcopy Create free account
hub / github.com/baldurk/renderdoc / BringToForeground

Function BringToForeground

qrenderdoc/Code/QRDUtils.cpp:3450–3464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3448}
3449
3450void BringToForeground(QWidget *window)
3451{
3452#ifdef Q_OS_WIN
3453 SetWindowPos((HWND)window->winId(), HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
3454 window->setWindowState(Qt::WindowActive);
3455 window->raise();
3456 window->showNormal();
3457 window->show();
3458 SetWindowPos((HWND)window->winId(), HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
3459#else
3460 window->activateWindow();
3461 window->raise();
3462 window->showNormal();
3463#endif
3464}
3465
3466bool IsDarkTheme()
3467{

Callers 1

EventSelectedMethod · 0.85

Calls 1

showMethod · 0.45

Tested by

no test coverage detected