Disable OpenGLES renderer menu option on windows

As the OpenGLES doesn't (yet) work on Windows, disable the option.
This commit is contained in:
ts-korhonen
2021-12-13 18:04:35 +02:00
parent f2d79eee59
commit 5f282e31c0

View File

@@ -221,6 +221,11 @@ MainWindow::MainWindow(QWidget *parent) :
ui->actionChange_contrast_for_monochrome_display->setChecked(true);
}
#ifdef Q_OS_WINDOWS
/* qt opengles doesn't work (yet?) so hide the menu option */
ui->actionHardware_Renderer_OpenGL_ES->setVisible(false);
#endif
setFocusPolicy(Qt::StrongFocus);
ui->gles->setFocusPolicy(Qt::NoFocus);
ui->sw->setFocusPolicy(Qt::NoFocus);