Qt: Show window later that usual to ensure that it scales properly initially

This commit is contained in:
Jeffrey Pfau 2015-01-24 15:50:04 -08:00
parent 19758d7115
commit 43ddcf56cc
1 changed files with 12 additions and 6 deletions

View File

@ -26,7 +26,9 @@ GBAApp::GBAApp(int& argc, char* argv[])
QApplication::setApplicationName(PROJECT_NAME); QApplication::setApplicationName(PROJECT_NAME);
QApplication::setApplicationVersion(PROJECT_VERSION); QApplication::setApplicationVersion(PROJECT_VERSION);
#ifndef Q_OS_MAC
m_window.show(); m_window.show();
#endif
GBAArguments args = {}; GBAArguments args = {};
if (m_configController.parseArguments(&args, argc, argv)) { if (m_configController.parseArguments(&args, argc, argv)) {
@ -35,6 +37,10 @@ GBAApp::GBAApp(int& argc, char* argv[])
m_window.loadConfig(); m_window.loadConfig();
} }
freeArguments(&args); freeArguments(&args);
#ifdef Q_OS_MAC
m_window.show();
#endif
} }
bool GBAApp::event(QEvent* event) { bool GBAApp::event(QEvent* event) {