Allow sending encrypted messages if build supports it

This commit is contained in:
Tobias Fella
2022-05-19 23:27:53 +02:00
parent ded60b906b
commit b1581a54d1
3 changed files with 14 additions and 3 deletions

View File

@@ -41,6 +41,7 @@ class Controller : public QObject
Q_PROPERTY(bool supportSystemTray READ supportSystemTray CONSTANT)
Q_PROPERTY(bool hasWindowSystem READ hasWindowSystem CONSTANT)
Q_PROPERTY(bool isOnline READ isOnline NOTIFY isOnlineChanged)
Q_PROPERTY(bool encryptionSupported READ encryptionSupported CONSTANT)
public:
static Controller &instance();
@@ -96,6 +97,7 @@ public:
Q_INVOKABLE void setBlur(QQuickItem *item, bool blur);
Q_INVOKABLE void raiseWindow(QWindow *window);
Q_INVOKABLE QString plainText(QQuickTextDocument *document) const;
bool encryptionSupported() const;
private:
explicit Controller(QObject *parent = nullptr);