Skip to content

Commit

Permalink
sync: from linuxdeepin/dtkdeclarative
Browse files Browse the repository at this point in the history
Synchronize source files from linuxdeepin/dtkdeclarative.

Source-pull-request: linuxdeepin/dtkdeclarative#436
  • Loading branch information
deepin-ci-robot authored and kegechen committed Dec 17, 2024
1 parent 3fa8f28 commit cb411aa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions qt6/src/qml/ArrowListView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ FocusScope {

ListView {
id: itemsView
clip: true
Layout.fillWidth: true
Layout.fillHeight: true
implicitHeight: Math.min(contentHeight, maxVisibleItems * itemHeight)
Expand Down
2 changes: 1 addition & 1 deletion qt6/src/qml/LineEdit.qml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ TextField {
id: control
readonly property alias clearButton: clearBtn

rightPadding: clearBtn.active ? (clearBtn.width + clearBtn.anchors.rightMargin) : 0
rightPadding: clearBtn.active ? (clearBtn.width + clearBtn.anchors.rightMargin) : 10
selectByMouse: true

Loader {
Expand Down
1 change: 1 addition & 0 deletions src/qml/ArrowListView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ FocusScope {
Layout.fillWidth: true
Layout.fillHeight: true
implicitHeight: Math.min(contentHeight, maxVisibleItems * itemHeight)
clip: true
implicitWidth:{
var maxWidth = DS.Style.arrowListView.width
if (!itemsView.model || !itemsView.model.hasOwnProperty("get"))
Expand Down
2 changes: 1 addition & 1 deletion src/qml/LineEdit.qml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ TextField {
id: control
readonly property alias clearButton: clearBtn

rightPadding: clearBtn.active ? (clearBtn.width + clearBtn.anchors.rightMargin) : 0
rightPadding: clearBtn.active ? (clearBtn.width + clearBtn.anchors.rightMargin) : 10
selectByMouse: true

Loader {
Expand Down

0 comments on commit cb411aa

Please sign in to comment.