mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-06 09:20:33 +00:00
697a5f5d2a
Signed-off-by: Adam Treat <treat.adam@gmail.com>
19 lines
456 B
QML
19 lines
456 B
QML
import QtCore
|
|
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Controls.Basic
|
|
import llm
|
|
|
|
TextField {
|
|
id: myDirectoryField
|
|
padding: 10
|
|
property bool isValid: LLM.directoryExists(text)
|
|
color: text === "" || isValid ? theme.textColor : theme.textErrorColor
|
|
background: Rectangle {
|
|
implicitWidth: 150
|
|
color: theme.controlBackground
|
|
radius: 10
|
|
}
|
|
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
|
|
}
|