Skip to content

Commit

Permalink
No background color needed during drag Remove background during drag
Browse files Browse the repository at this point in the history
fix: No background color needed during drag.

Remove background during drag.

Issue: linuxdeepin/developer-center#7944
log: as title
  • Loading branch information
robertkill committed Apr 18, 2024
1 parent c3a6982 commit bde42a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions qml/windowed/FreeSortListView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,12 @@ Item {

onPressed: function (mouse) {
if (mouse.button === Qt.LeftButton) {
bg.visible = false
itemDelegate.grabToImage(function(result) {
itemDelegate.Drag.imageSource = result.url
bg.visible = Qt.binding(function() {
return bg.ColorSelector.controlState === DTK.HoveredState
})
})
}
}
Expand Down

0 comments on commit bde42a3

Please sign in to comment.