Include the OpenGL version in System Info

This commit is contained in:
Luis Ángel San Martín 2022-09-11 14:44:03 +02:00
parent f794227902
commit cba098b07f

View File

@ -1,5 +1,7 @@
#include "help_about_dialog.h"
#include "opengl_checker.h"
#include <QtCore>
#include <QVBoxLayout>
#include <QTabWidget>
@ -125,8 +127,10 @@ void HelpAboutDialog::loadSystemInfo()
// text.append(QString("CPU: %1\n").arg(tempOutput));
// }
auto openGLChecker = OpenGLChecker();
text.append("\nGRAPHIC INFORMATION\n");
text.append(QString("Screen pixel ratio: %1\n").arg(devicePixelRatioF()));
text.append(QString("OpenGL version: %1\n").arg(openGLChecker.textVersionDescription()));
// if (QSysInfo::kernelType() == "winnt") {
// QString gpu = "wmic PATH Win32_videocontroller get VideoProcessor";