Files
Plasma-AI-Chat/contents/ui/configGeneral.qml
2026-05-05 12:57:06 +03:00

40 lines
988 B
QML

import QtQuick
import QtQuick.Layouts
import QtQuick.Controls as QQC2
import org.kde.kirigami as Kirigami
Kirigami.Page {
id: page
property alias cfg_systemPrompt: systemPrompt.text
property alias cfg_defaultModel: defaultModelField.text
contentItem: ColumnLayout {
Kirigami.Heading {
text: "System Prompt"
level: 2
Layout.fillWidth: true
}
QQC2.TextArea {
id: systemPrompt
placeholderText: "Enter the system prompt here..."
Layout.fillWidth: true
Layout.preferredHeight: 240
wrapMode: TextEdit.Wrap
clip: true
}
Kirigami.Heading {
text: "Default Model"
level: 3
Layout.fillWidth: true
}
QQC2.TextField {
id: defaultModelField
placeholderText: "Enter the default model name (e.g., llama3)"
Layout.fillWidth: true
}
}
}