feat: Add settings for text format

This commit is contained in:
Petr Mironychev
2025-05-01 00:01:44 +02:00
parent 784529e344
commit 4e05abc7d2
8 changed files with 38 additions and 2 deletions

View File

@ -42,6 +42,7 @@ class ChatRootView : public QQuickItem
Q_PROPERTY(QString codeFontFamily READ codeFontFamily NOTIFY codeFamilyChanged FINAL)
Q_PROPERTY(int codeFontSize READ codeFontSize NOTIFY codeFontSizeChanged FINAL)
Q_PROPERTY(int textFontSize READ textFontSize NOTIFY textFontSizeChanged FINAL)
Q_PROPERTY(int textFormat READ textFormat NOTIFY textFormatChanged FINAL)
QML_ELEMENT
@ -89,6 +90,7 @@ public:
int codeFontSize() const;
int textFontSize() const;
int textFormat() const;
public slots:
void sendMessage(const QString &message);
@ -109,6 +111,7 @@ signals:
void codeFamilyChanged();
void codeFontSizeChanged();
void textFontSizeChanged();
void textFormatChanged();
private:
QString getChatsHistoryDir() const;