Qt warnings cleanup

This commit is contained in:
msuih 2019-08-10 14:24:14 +03:00 committed by Megamouse
parent f051f53e15
commit 8150095e8f
8 changed files with 26 additions and 18 deletions

View file

@ -35,6 +35,8 @@
#include <thread>
#include <QScreen>
#include "stdafx.h"
#include "Emu/System.h"
#include "Emu/Memory/vm.h"
@ -1593,7 +1595,7 @@ void main_window::ConfigureGuiFromSettings(bool configure_all)
{
// By default, set the window to 70% of the screen and the debugger frame is hidden.
m_debuggerFrame->hide();
resize(QDesktopWidget().availableGeometry().size() * 0.7);
resize(QGuiApplication::primaryScreen()->availableSize() * 0.7);
}
restoreState(guiSettings->GetValue(gui::mw_windowState).toByteArray());