2023-08-22 17:05:28 +03:00
|
|
|
// Copyright (C) 2023 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
|
|
|
|
|
|
import QtQuick
|
|
|
|
|
import HelperWidgets as HelperWidgets
|
2024-01-16 12:30:29 +01:00
|
|
|
import StudioTheme as StudioTheme
|
2023-08-22 17:05:28 +03:00
|
|
|
import EffectMakerBackend
|
|
|
|
|
|
|
|
|
|
Row {
|
2023-08-25 16:27:01 +03:00
|
|
|
id: itemPane
|
|
|
|
|
|
2023-08-22 17:05:28 +03:00
|
|
|
width: parent.width
|
|
|
|
|
spacing: 5
|
|
|
|
|
|
2023-08-25 16:27:01 +03:00
|
|
|
HelperWidgets.UrlChooser {
|
|
|
|
|
backendValue: uniformBackendValue
|
|
|
|
|
|
2023-08-28 14:15:49 +03:00
|
|
|
actionIndicatorVisible: false
|
|
|
|
|
|
2023-10-31 18:07:19 +02:00
|
|
|
onAbsoluteFilePathChanged: uniformValue = absoluteFilePath
|
2023-11-14 12:43:46 +02:00
|
|
|
|
|
|
|
|
function defaultAsString() {
|
|
|
|
|
let urlStr = uniformDefaultValue.toString()
|
|
|
|
|
urlStr = urlStr.replace(/^(file:\/{3})/, "")
|
|
|
|
|
|
|
|
|
|
// Prepend slash if there is no drive letter
|
|
|
|
|
if (urlStr.length > 1 && urlStr[1] !== ':')
|
|
|
|
|
urlStr = '/' + urlStr;
|
|
|
|
|
|
|
|
|
|
return urlStr
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
defaultItems: [uniformDefaultValue.split('/').pop()]
|
|
|
|
|
defaultPaths: [defaultAsString(uniformDefaultValue)]
|
2023-08-25 16:27:01 +03:00
|
|
|
}
|
2023-08-22 17:05:28 +03:00
|
|
|
}
|