File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import org.deepin.dtk 1.0 as D
88
99RowLayout {
1010 id: root
11+ implicitWidth: edit .implicitWidth
1112 property var dataItem
1213 property var nameFilters: [qsTr (" All files (*)" )]
1314 property alias placeholderText: edit .placeholderText
@@ -30,6 +31,7 @@ RowLayout {
3031 }
3132 D .LineEdit {
3233 id: edit
34+ Layout .preferredWidth : edit .implicitWidth - browseBtn .width - root .spacing
3335 onTextChanged: {
3436 if (! initialized) {
3537 return
@@ -50,10 +52,12 @@ RowLayout {
5052 }
5153 Component .onCompleted : initialized = true
5254 }
53- NetButton {
54- text: " ..."
55- onClicked: {
56- fileDialog .createObject (this ).open ()
57- }
58- }
55+ // TEMP: 验证改动是否生效,去掉按钮
56+ NetButton {
57+ id: browseBtn
58+ text: " ..."
59+ onClicked: {
60+ fileDialog .createObject (this ).open ()
61+ }
62+ }
5963}
You can’t perform that action at this time.
0 commit comments