aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/qqmlsysteminformation_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/qqmlsysteminformation_p.h')
-rw-r--r--src/core/qqmlsysteminformation_p.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/qqmlsysteminformation_p.h b/src/core/qqmlsysteminformation_p.h
index 919d1e73eb..868bce1823 100644
--- a/src/core/qqmlsysteminformation_p.h
+++ b/src/core/qqmlsysteminformation_p.h
@@ -27,6 +27,8 @@ class Q_QMLCORE_PRIVATE_EXPORT QQmlSystemInformation : public QObject
QML_NAMED_ELEMENT(SystemInformation)
QML_ADDED_IN_VERSION(6, 4)
+ Q_PROPERTY(int wordSize READ wordSize CONSTANT FINAL)
+ Q_PROPERTY(QQmlSystemInformation::Endian byteOrder READ byteOrder CONSTANT FINAL)
Q_PROPERTY(QString buildCpuArchitecture READ buildCpuArchitecture CONSTANT FINAL)
Q_PROPERTY(QString currentCpuArchitecture READ currentCpuArchitecture CONSTANT FINAL)
Q_PROPERTY(QString buildAbi READ buildAbi CONSTANT FINAL)
@@ -40,8 +42,13 @@ class Q_QMLCORE_PRIVATE_EXPORT QQmlSystemInformation : public QObject
Q_PROPERTY(QByteArray bootUniqueId READ bootUniqueId CONSTANT FINAL)
public:
+ enum class Endian { Big, Little };
+ Q_ENUM(Endian)
+
explicit QQmlSystemInformation(QObject *parent = nullptr);
+ int wordSize() const;
+ Endian byteOrder() const;
QString buildCpuArchitecture() const;
QString currentCpuArchitecture() const;
QString buildAbi() const;