mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
cdd3b3d9cd
commit
1ec5e6ffc4
4 changed files with 903 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue