mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Include the OpenGL version in System Info
This commit is contained in:
parent
f794227902
commit
cba098b07f
@ -1,5 +1,7 @@
|
|||||||
#include "help_about_dialog.h"
|
#include "help_about_dialog.h"
|
||||||
|
|
||||||
|
#include "opengl_checker.h"
|
||||||
|
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <QTabWidget>
|
#include <QTabWidget>
|
||||||
@ -125,8 +127,10 @@ void HelpAboutDialog::loadSystemInfo()
|
|||||||
// text.append(QString("CPU: %1\n").arg(tempOutput));
|
// text.append(QString("CPU: %1\n").arg(tempOutput));
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
auto openGLChecker = OpenGLChecker();
|
||||||
text.append("\nGRAPHIC INFORMATION\n");
|
text.append("\nGRAPHIC INFORMATION\n");
|
||||||
text.append(QString("Screen pixel ratio: %1\n").arg(devicePixelRatioF()));
|
text.append(QString("Screen pixel ratio: %1\n").arg(devicePixelRatioF()));
|
||||||
|
text.append(QString("OpenGL version: %1\n").arg(openGLChecker.textVersionDescription()));
|
||||||
|
|
||||||
// if (QSysInfo::kernelType() == "winnt") {
|
// if (QSysInfo::kernelType() == "winnt") {
|
||||||
// QString gpu = "wmic PATH Win32_videocontroller get VideoProcessor";
|
// QString gpu = "wmic PATH Win32_videocontroller get VideoProcessor";
|
||||||
|
Loading…
Reference in New Issue
Block a user