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#450
  • Loading branch information
deepin-ci-robot authored and 18202781743 committed Jan 8, 2025
1 parent b827ea4 commit 74d9b68
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions qt6/src/qml/ArrowListView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ FocusScope {
interactive: Window.window ? (contentHeight > Window.window.height || model.count > maxVisibleItems) : false
ScrollIndicator.vertical: ScrollIndicator { }
highlight: HighlightPanel {
anchors.left: parent.left
anchors.right: parent.right
visible: false // TODO listview's highlight is confict with Item's highlight.
outerShadowColor: null
innerShadowColor: null
scale: D.DTK.hasAnimation ? 0.9 : 1.0
Expand Down
2 changes: 1 addition & 1 deletion qt6/src/qml/ComboBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ T.ComboBox {
rightPadding: padding + (control.mirrored || !indicator || !indicator.visible ? 0 : indicator.width + spacing)

delegate: MenuItem {
implicitWidth: ListView.view.width
useIndicatorPadding: true
text: control.textRole ? (Array.isArray(control.model) ? modelData[control.textRole] : (model[control.textRole] === undefined ? modelData[control.textRole] : model[control.textRole])) : modelData
icon.name: (control.iconNameRole && model[control.iconNameRole] !== undefined) ? model[control.iconNameRole] : null
highlighted: control.highlightedIndex === index
hoverEnabled: control.hoverEnabled
autoExclusive: true
checked: control.currentIndex === index
background: null
}

indicator: Loader {
Expand Down
5 changes: 2 additions & 3 deletions qt6/src/qml/Menu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ T.Menu {
topPadding: DS.Style.menu.topPadding
bottomPadding: topPadding

delegate: MenuItem {
background: null
}
delegate: MenuItem { }

D.PopupHandle.delegate: PopupWindow {
blurControl: control
Expand Down Expand Up @@ -89,6 +87,7 @@ T.Menu {

view.highlight: HighlightPanel {
id: highlightRect
visible: false // TODO listview's highlight is confict with Item's highlight.
anchors.left: parent ? parent.left : undefined
anchors.right: parent ? parent.right : undefined
anchors.leftMargin: 0
Expand Down

0 comments on commit 74d9b68

Please sign in to comment.