new chatlistview component, file attachments, performance & primitive test
This commit is contained in:
@@ -176,6 +176,21 @@ void ChatGeneration::appendReasoning(const QString& piece) {
|
||||
openReasoningSegment()->appendText(piece);
|
||||
}
|
||||
|
||||
void ChatGeneration::setError(const QString& value) {
|
||||
const bool hasError = !value.isEmpty();
|
||||
if (m_hasError == hasError && m_errorMessage == value) return;
|
||||
m_hasError = hasError;
|
||||
m_errorMessage = value;
|
||||
Q_EMIT errorChanged();
|
||||
}
|
||||
|
||||
void ChatGeneration::dismissError() {
|
||||
if (!m_hasError && m_errorMessage.isEmpty()) return;
|
||||
m_hasError = false;
|
||||
m_errorMessage.clear();
|
||||
Q_EMIT errorChanged();
|
||||
}
|
||||
|
||||
void ChatGeneration::setStreaming(bool value) {
|
||||
if (m_streaming == value) return;
|
||||
m_streaming = value;
|
||||
|
||||
Reference in New Issue
Block a user