summaryrefslogtreecommitdiffstats
path: root/qt-ui/usersurvey.cpp
diff options
context:
space:
mode:
authorGravatar Joseph W. Joshua <joejoshw@gmail.com>2014-06-14 22:27:57 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-14 12:50:35 -0700
commit1ec5e6ffc4f9f32a6d7149e52b161aeaba6adfa4 (patch)
tree58a6be26495b540d3471682a1a91369bfbd9a14e /qt-ui/usersurvey.cpp
parentcdd3b3d9cd5439cd56fb752e56a72045bed55f90 (diff)
downloadsubsurface-1ec5e6ffc4f9f32a6d7149e52b161aeaba6adfa4.tar.gz
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 <joejoshw@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/usersurvey.cpp')
-rw-r--r--qt-ui/usersurvey.cpp4
1 files changed, 3 insertions, 1 deletions
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()