Fix compilation on Windows, fix glitch that could cause windows to appear off the actual screen with no way to get them back.

This commit is contained in:
Collin Kidder
2020-11-15 01:30:13 -08:00
parent 80523f2eeb
commit b345495178
21 changed files with 41 additions and 20 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
#include <QtDebug>
#include "utility.h"
#include "helpwindow.h"
#include "ui_helpwindow.h"
@@ -32,7 +33,7 @@ void HelpWindow::readSettings()
if (settings.value("Main/SaveRestorePositions", false).toBool())
{
resize(settings.value("HelpViewer/WindowSize", QSize(600, 700)).toSize());
move(settings.value("HelpViewer/WindowPos", QPoint(50, 50)).toPoint());
move(Utility::constrainedWindowPos(settings.value("HelpViewer/WindowPos", QPoint(50, 50)).toPoint()));
}
}