Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion dcc-network/qml/NetFileChooseEdit.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2024 - 2026 UnionTech Software Technology Co., Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.15
import QtQuick.Layouts 1.15
Expand All @@ -8,6 +8,7 @@ import org.deepin.dtk 1.0 as D

RowLayout {
id: root
implicitWidth: edit.implicitWidth
property var dataItem
property var nameFilters: [qsTr("All files (*)")]
property alias placeholderText: edit.placeholderText
Expand All @@ -30,6 +31,7 @@ RowLayout {
}
D.LineEdit {
id: edit
Layout.preferredWidth: edit.implicitWidth - browseBtn.width - root.spacing
onTextChanged: {
if (!initialized) {
return
Expand All @@ -50,7 +52,9 @@ RowLayout {
}
Component.onCompleted: initialized = true
}

NetButton {
id: browseBtn
text: "..."
onClicked: {
fileDialog.createObject(this).open()
Expand Down
Loading