diff options
Diffstat (limited to 'plugins/systeminfo/systeminfo.h')
-rw-r--r-- | plugins/systeminfo/systeminfo.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/systeminfo/systeminfo.h b/plugins/systeminfo/systeminfo.h index 97eb0e61..8d2506b2 100644 --- a/plugins/systeminfo/systeminfo.h +++ b/plugins/systeminfo/systeminfo.h @@ -54,6 +54,8 @@ class SystemInfo : public QObject, public QQmlParserStatus Q_PROPERTY(QString kernelVersion READ kernelVersion CONSTANT) Q_PROPERTY(QString qtVersion READ qtVersion CONSTANT) Q_PROPERTY(QString qtDiag READ qtDiag NOTIFY qtDiagChanged) + Q_PROPERTY(bool allow3dStudioPresentations READ allow3dStudioPresentations CONSTANT) + Q_PROPERTY(bool allowOpenGLContent READ allowOpenGLContent CONSTANT) public: explicit SystemInfo(QObject *parent = nullptr); @@ -68,6 +70,10 @@ public: QString kernelVersion() const; QString qtDiag() const; + Q_INVOKABLE QVariant readEnvironmentVariable(const QString &name) const; + Q_INVOKABLE bool isEnvironmentVariableSet(const QString &name) const; + Q_INVOKABLE bool isEnvironmentVariableEmpty(const QString &name) const; + public slots: void init(); @@ -90,6 +96,9 @@ private slots: private: void getAddress(); void getQtDiagInfo(); + bool allow3dStudioPresentations(); + bool allowOpenGLContent(); + QStringList m_addressList; int m_timerId{0}; bool m_connected{false}; |