2023-06-02 22:52:55 -04:00
|
|
|
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
|
2024-01-22 14:41:47 -05:00
|
|
|
color: theme.controlBackground
|
2024-06-24 18:49:23 -04:00
|
|
|
border.width: 1
|
|
|
|
border.color: theme.controlBorder
|
2023-06-02 22:52:55 -04:00
|
|
|
radius: 10
|
|
|
|
}
|
2024-01-22 14:41:47 -05:00
|
|
|
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
|
2023-06-02 22:52:55 -04:00
|
|
|
}
|