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