mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 00:13:29 +02:00
always bring the results window to front when shown
This commit is contained in:
parent
95e2cc4eea
commit
822af3365b
1 changed files with 8 additions and 2 deletions
|
@ -41,11 +41,17 @@ ResultsWindow* OvenMainWindow::showResultsWindow() {
|
||||||
if (!_resultsWindow) {
|
if (!_resultsWindow) {
|
||||||
// we don't have a results window right now, so make a new one
|
// we don't have a results window right now, so make a new one
|
||||||
_resultsWindow = new ResultsWindow;
|
_resultsWindow = new ResultsWindow;
|
||||||
|
|
||||||
|
// even though we're about to show the results window, we do it here so that the move below works
|
||||||
|
_resultsWindow->show();
|
||||||
|
|
||||||
|
// place the results window initially below our window
|
||||||
|
_resultsWindow->move(_resultsWindow->x(), this->frameGeometry().bottom());
|
||||||
}
|
}
|
||||||
|
|
||||||
// show the results window, place it right below our window
|
// show the results window and make sure it is in front
|
||||||
_resultsWindow->show();
|
_resultsWindow->show();
|
||||||
_resultsWindow->move(_resultsWindow->x(), this->frameGeometry().bottom());
|
_resultsWindow->raise();
|
||||||
|
|
||||||
// return a pointer to the results window the caller can use
|
// return a pointer to the results window the caller can use
|
||||||
return _resultsWindow;
|
return _resultsWindow;
|
||||||
|
|
Loading…
Reference in a new issue