summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qsysinfo.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-03-06 13:32:31 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-09 19:39:48 +0200
commit442a6ef029b56f706bc207cca76549d418008256 (patch)
tree0b616d55cef62dcc2be938d5fddcafb02a40428e /src/corelib/global/qsysinfo.h
parent1ec8df439a1b3d82c6f4d443c22fc9bb00566d1e (diff)
Add QSysInfo::osType()
This function returns the OS kernel type. It's usually the same as the first part of the mkspec, in qmake, or the result of uname. Usually, because it's not the case for a few systems, like Android, OS X, iOS, BlackBerry, etc. Change-Id: I295d92048d33ef02987e8696772ea89e925428d3 Reviewed-by: Jake Petroules <jake.petroules@petroules.com> Reviewed-by: Sergio Ahumada <sahumada@blackberry.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'src/corelib/global/qsysinfo.h')
-rw-r--r--src/corelib/global/qsysinfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/global/qsysinfo.h b/src/corelib/global/qsysinfo.h
index fe78df4abb..e1a1c00bae 100644
--- a/src/corelib/global/qsysinfo.h
+++ b/src/corelib/global/qsysinfo.h
@@ -165,6 +165,7 @@ public:
static QString cpuArchitecture();
static QString fullCpuArchitecture();
+ static QString osType();
};
QT_END_NAMESPACE