make userscript properties constant

This commit is contained in:
Malte Jürgens 2023-02-15 00:33:52 +01:00
parent 5df24629e6
commit fc0dbb5b34
No known key found for this signature in database
GPG key ID: D29FBD5F93C0CFC3

View file

@ -24,9 +24,9 @@ class UserScript : public QObject {
public:
UserScript();
bool isVirtmicRunning();
Q_PROPERTY(QString version READ version);
Q_PROPERTY(bool kxmlgui MEMBER m_kxmlgui);
Q_PROPERTY(bool kglobalaccel MEMBER m_kglobalaccel);
Q_PROPERTY(QString version READ version CONSTANT);
Q_PROPERTY(bool kxmlgui MEMBER m_kxmlgui CONSTANT);
Q_PROPERTY(bool kglobalaccel MEMBER m_kglobalaccel CONSTANT);
private:
QProcess m_virtmicProcess;