summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qoperatingsystemversion.cpp
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2016-12-05 13:32:44 -0800
committerJake Petroules <jake.petroules@qt.io>2016-12-06 22:02:33 +0000
commit2da89b8fb253aaff674b960020185c97944296e3 (patch)
treeae226e075c24fc25ac56e521ecd7c93a401e077f /src/corelib/global/qoperatingsystemversion.cpp
parentbbdcc4ec8eb01830602a893b7a4b4140162f7c9c (diff)
Complete QOperatingSystemVersion documentation
This adds documentation for QOperatingSystemVersion::OSType and cleans up some extraneous quotes. Change-Id: Idaeb163caded9a51ce0fbcc812eb622b4227844e Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/global/qoperatingsystemversion.cpp')
-rw-r--r--src/corelib/global/qoperatingsystemversion.cpp24
1 files changed, 20 insertions, 4 deletions
diff --git a/src/corelib/global/qoperatingsystemversion.cpp b/src/corelib/global/qoperatingsystemversion.cpp
index 75d3f99fee..fb1ada905c 100644
--- a/src/corelib/global/qoperatingsystemversion.cpp
+++ b/src/corelib/global/qoperatingsystemversion.cpp
@@ -72,14 +72,14 @@ QT_BEGIN_NAMESPACE
\table
\header \li Platforms \li Value
\row \li Android \li result of parsing
- \l{https://developer.android.com/reference/android/os/Build.VERSION.html#RELEASE}{"android.os.Build.VERSION.RELEASE"}
+ \l{https://developer.android.com/reference/android/os/Build.VERSION.html#RELEASE}{android.os.Build.VERSION.RELEASE}
using QVersionNumber, with a fallback to
- \l{https://developer.android.com/reference/android/os/Build.VERSION.html#SDK_INT}{"android.os.Build.VERSION.SDK_INT"}
+ \l{https://developer.android.com/reference/android/os/Build.VERSION.html#SDK_INT}{android.os.Build.VERSION.SDK_INT}
to determine the major and minor version component if the former fails
\row \li Apple Platforms \li majorVersion, minorVersion, and patchVersion from
- \l{https://developer.apple.com/reference/foundation/nsprocessinfo/1410906-operatingsystemversion?language=objc}{"NSProcessInfo.operatingSystemVersion"}
+ \l{https://developer.apple.com/reference/foundation/nsprocessinfo/1410906-operatingsystemversion?language=objc}{NSProcessInfo.operatingSystemVersion}
\row \li Windows \li dwMajorVersion, dwMinorVersion, and dwBuildNumber from
- \l{https://msdn.microsoft.com/en-us/library/mt723418.aspx}{"RtlGetVersion"} -
+ \l{https://msdn.microsoft.com/en-us/library/mt723418.aspx}{RtlGetVersion} -
note that this function ALWAYS return the version number of the underlying operating system,
as opposed to the shim underneath GetVersionEx that hides the real version number
if the application is not manifested for that version of the OS
@@ -87,6 +87,22 @@ QT_BEGIN_NAMESPACE
*/
/*!
+ \enum QOperatingSystemVersion::OSType
+
+ This enum provides symbolic names for the various operating
+ system families supported by QOperatingSystemVersion.
+
+ \value Android The Google Android operating system.
+ \value IOS The Apple iOS operating system.
+ \value MacOS The Apple macOS operating system.
+ \value TvOS The Apple tvOS operating system.
+ \value WatchOS The Apple watchOS operating system.
+ \value Windows The Microsoft Windows operating system (in both Win32 and WinRT environments).
+
+ \value Unknown An unknown or unsupported operating system.
+*/
+
+/*!
\fn QOperatingSystemVersion::QOperatingSystemVersion(int maj, int min, int mic)
Constructs a QOperatingSystemVersion consisting of the OS type \a os, and