revisions

This commit is contained in:
pls.153 2023-03-22 20:06:44 +01:00
parent a18dd8a725
commit b25acd28c0
2 changed files with 4 additions and 3 deletions

View file

@ -2,4 +2,4 @@
(in-package :qml-user)
;;(eval:eval-in-thread "(qml::help)")

View file

@ -12,7 +12,7 @@ Rectangle {
property string editFrom
function urlToString(url) {
var cut = (Qt.platform.os === "windows") ? "file:/" : "file://"
var cut = (Qt.platform.os === "windows") ? "file:///" : "file://"
return url.toString().substring(cut.length)
}
@ -60,7 +60,6 @@ Rectangle {
objectName: "path"
width: fileBrowser.width
inputMethodHints: Qt.ImhNoAutoUppercase | Qt.ImhNoPredictiveText
text: urlToString(folderModel.folder)
onFocusChanged: if (focus) { cursorPosition = length }
@ -113,6 +112,8 @@ Rectangle {
showHidden: true
nameFilters: ["*.lisp", "*.lsp", "*.qml", "*.asd", "*.exp", "*.sexp",
"*.fas", "*.fasb", "*.fasc", ".eclrc", ".repl-history"]
onFolderChanged: path.text = urlToString(folder)
}
Row {