diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-01-27 15:59:25 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-01-27 15:59:25 +0100 |
commit | e2f547149a5d54747ab44a6f777f91edd8d2f76e (patch) | |
tree | 54deca30be077a1fb258d66e558aef25866cf328 /src/UserSettingsPage.h | |
parent | Update readme with new build instructions (diff) | |
download | nheko-e2f547149a5d54747ab44a6f777f91edd8d2f76e.tar.xz |
Allow sending messages as plain text
Diffstat (limited to 'src/UserSettingsPage.h')
-rw-r--r-- | src/UserSettingsPage.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/UserSettingsPage.h b/src/UserSettingsPage.h index 28236e83..8658e80e 100644 --- a/src/UserSettingsPage.h +++ b/src/UserSettingsPage.h @@ -68,6 +68,12 @@ public: save(); } + void setMarkdownEnabled(bool state) + { + isMarkdownEnabled_ = state; + save(); + } + void setReadReceipts(bool state) { isReadReceiptsEnabled_ = state; @@ -96,6 +102,8 @@ public: bool isTrayEnabled() const { return isTrayEnabled_; } bool isStartInTrayEnabled() const { return isStartInTrayEnabled_; } bool isGroupViewEnabled() const { return isGroupViewEnabled_; } + bool isAvatarCirclesEnabled() const { return avatarCircles_; } + bool isMarkdownEnabled() const { return isMarkdownEnabled_; } bool isTypingNotificationsEnabled() const { return isTypingNotificationsEnabled_; } bool isReadReceiptsEnabled() const { return isReadReceiptsEnabled_; } bool hasDesktopNotifications() const { return hasDesktopNotifications_; } @@ -116,6 +124,7 @@ private: bool isTrayEnabled_; bool isStartInTrayEnabled_; bool isGroupViewEnabled_; + bool isMarkdownEnabled_; bool isTypingNotificationsEnabled_; bool isReadReceiptsEnabled_; bool hasDesktopNotifications_; @@ -168,6 +177,7 @@ private: Toggle *groupViewToggle_; Toggle *typingNotifications_; Toggle *readReceipts_; + Toggle *markdownEnabled_; Toggle *desktopNotifications_; Toggle *avatarCircles_; QLabel *deviceFingerprintValue_; |