Add a new in-app API function ShowReplayUI to raise the UI window

* This is not guaranteed to work, e.g. on windows where for good reason
  background windows can't necessarily raise themselves.
This commit is contained in:
baldurk
2022-01-12 11:24:22 +00:00
parent 3587f8e448
commit 089126c34b
11 changed files with 158 additions and 38 deletions
+9
View File
@@ -1642,6 +1642,15 @@ ToolWindowManager::AreaReference MainWindow::leftToolArea()
return ToolWindowManager::AreaReference(ToolWindowManager::LastUsedArea);
}
void MainWindow::BringToFront()
{
// un-minimise if necessary
setWindowState(windowState() & ~Qt::WindowMinimized);
show();
raise();
activateWindow();
}
void MainWindow::LoadInitialLayout()
{
bool loaded = LoadLayout(0);