4#include <QtCore/qglobal.h>
5#include <QtCore/qversionnumber.h>
7#ifndef QOPERATINGSYSTEMVERSION_H
8#define QOPERATINGSYSTEMVERSION_H
30 int vmajor,
int vminor = -1,
int vmicro = -1)
45#elif defined(Q_OS_MACOS)
47#elif defined(Q_OS_IOS)
49#elif defined(Q_OS_TVOS)
51#elif defined(Q_OS_WATCHOS)
53#elif defined(Q_OS_ANDROID)
67 {
return m_micro >= 0 ? 3 : m_minor >= 0 ? 2 : m_major >= 0 ? 1 : 0; }
108#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0) && !defined(QT_BOOTSTRAPPED)
125#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0) && !defined(QT_BOOTSTRAPPED)
238#if QT_CORE_REMOVED_SINCE(6, 3)
246#ifndef QT_NO_DEBUG_STREAM
constexpr int segmentCount() const
friend bool operator>(QOperatingSystemVersionBase lhs, QOperatingSystemVersionBase rhs)
QVersionNumber version() const
QOperatingSystemVersionBase()=default
friend bool operator<(QOperatingSystemVersionBase lhs, QOperatingSystemVersionBase rhs)
constexpr QOperatingSystemVersionBase(OSType osType, int vmajor, int vminor=-1, int vmicro=-1)
static Q_CORE_EXPORT QOperatingSystemVersionBase current()
bool isAnyOfType(std::initializer_list< OSType > types) const
constexpr int majorVersion() const
friend bool operator>=(QOperatingSystemVersionBase lhs, QOperatingSystemVersionBase rhs)
static Q_CORE_EXPORT bool isAnyOfType(std::initializer_list< OSType > types, OSType type)
constexpr int minorVersion() const
constexpr int microVersion() const
friend bool operator<=(QOperatingSystemVersionBase lhs, QOperatingSystemVersionBase rhs)
static Q_CORE_EXPORT int compare(QOperatingSystemVersionBase v1, QOperatingSystemVersionBase v2)
static constexpr OSType currentType()
constexpr OSType type() const
constexpr int majorVersion() const
Returns the major version number, that is, the first segment of the operating system's version number...
constexpr int minorVersion() const
Returns the minor version number, that is, the second segment of the operating system's version numbe...
static constexpr OSType currentType()
Returns the current OS type without constructing a QOperatingSystemVersion instance.
QVersionNumber version() const
constexpr QOperatingSystemVersion(const QOperatingSystemVersionBase &osversion)
constexpr QOperatingSystemVersion(OSType osType, int vmajor, int vminor=-1, int vmicro=-1)
Constructs a QOperatingSystemVersion consisting of the OS type osType, and major, minor,...
constexpr int segmentCount() const
Returns the number of integers stored in the version number.
constexpr int microVersion() const
Returns the micro version number, that is, the third segment of the operating system's version number...
constexpr OSType type() const
Returns the OS type identified by the QOperatingSystemVersion.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLint GLfloat GLfloat GLfloat v2
GLsizei GLenum GLenum * types
Q_CORE_EXPORT QDebug operator<<(QDebug debug, const QOperatingSystemVersion &ov)
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)