From 1ec5e6ffc4f9f32a6d7149e52b161aeaba6adfa4 Mon Sep 17 00:00:00 2001 From: "Joseph W. Joshua" Date: Sat, 14 Jun 2014 22:27:57 +0300 Subject: OS Detection Implements automatic OS and architecture detection. This code has been taken from the Qt repositories for Qt 5.4 (LGPL) and slightly modified into the SubsurfaceSysInfo class. Signed-off-by: Joseph W. Joshua Signed-off-by: Dirk Hohndel --- qt-ui/usersurvey.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qt-ui/usersurvey.cpp') diff --git a/qt-ui/usersurvey.cpp b/qt-ui/usersurvey.cpp index 7da7b3cdb..d9cee8ce8 100644 --- a/qt-ui/usersurvey.cpp +++ b/qt-ui/usersurvey.cpp @@ -8,12 +8,14 @@ #include "ssrf-version.h" #include "helpers.h" - +#include "subsurfacesysinfo.h" UserSurvey::UserSurvey(QWidget *parent) : QDialog(parent), ui(new Ui::UserSurvey) { ui->setupUi(this); // fill in the system data + ui->system->append(tr("Operating System: %1").arg(SubsurfaceSysInfo::prettyOsName())); + ui->system->append(tr("CPU Architecture: %1").arg(SubsurfaceSysInfo::cpuArchitecture())); } UserSurvey::~UserSurvey() -- cgit v1.2.3-70-g09d2