mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-08 11:58:53 +00:00
Latest v3.0.0 rc4 fixes (#2490)
* Use the same font size for code blocks as we do for the rest of the chat text. * Add a conversation tray after discussion with Vincent and Andriy and gathering of feedback from some other users. This adds the reset context back as a recycle button and copy chat features back to the app for v3.0.0. Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
@@ -42,6 +42,7 @@ class ChatViewTextProcessor : public QObject
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QQuickTextDocument* textDocument READ textDocument WRITE setTextDocument NOTIFY textDocumentChanged())
|
||||
Q_PROPERTY(bool shouldProcessText READ shouldProcessText WRITE setShouldProcessText NOTIFY shouldProcessTextChanged())
|
||||
Q_PROPERTY(qreal fontPixelSize READ fontPixelSize WRITE setFontPixelSize NOTIFY fontPixelSizeChanged())
|
||||
QML_ELEMENT
|
||||
public:
|
||||
explicit ChatViewTextProcessor(QObject *parent = nullptr);
|
||||
@@ -57,9 +58,13 @@ public:
|
||||
bool shouldProcessText() const;
|
||||
void setShouldProcessText(bool b);
|
||||
|
||||
qreal fontPixelSize() const;
|
||||
void setFontPixelSize(qreal b);
|
||||
|
||||
Q_SIGNALS:
|
||||
void textDocumentChanged();
|
||||
void shouldProcessTextChanged();
|
||||
void fontPixelSizeChanged();
|
||||
|
||||
private Q_SLOTS:
|
||||
void handleTextChanged();
|
||||
@@ -75,6 +80,7 @@ private:
|
||||
QColor m_headerColor;
|
||||
bool m_shouldProcessText = false;
|
||||
bool m_isProcessingText = false;
|
||||
qreal m_fontPixelSize;
|
||||
};
|
||||
|
||||
#endif // CHATVIEWTEXTPROCESSOR_H
|
||||
|
Reference in New Issue
Block a user