Skip to content
Merged
Show file tree
Hide file tree
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: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
dde-launchpad (2.0.30) unstable; urgency=medium

* fix: correct mouse event handling area for icon items

-- YeShanShan <yeshanshan@uniontech.com> Fri, 06 Mar 2026 16:16:24 +0800

dde-launchpad (2.0.29) unstable; urgency=medium

* fix: fix font weight property assignment
Expand Down
41 changes: 20 additions & 21 deletions qml/windowed/IconItemDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,26 @@ Control {
ColorSelector.pressed: false
ColorSelector.family: Palette.CrystalColor
flat: true
MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: false
acceptedButtons: Qt.LeftButton
enabled: root.dndEnabled
drag.target: root
onPressed: function (mouse) {
if (mouse.button === Qt.LeftButton && root.dndEnabled) {
appIcon.grabToImage(function(result) {
root.Drag.imageSource = result.url;
})
}
}
onClicked: {
if (!drag.active) {
root.itemClicked()
}
}
}
contentItem: Column {
anchors.fill: parent

Expand Down Expand Up @@ -73,27 +93,6 @@ Control {
palette: DTK.makeIconPalette(root.palette)
theme: ApplicationHelper.DarkType
}

MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: false
acceptedButtons: Qt.LeftButton
enabled: root.dndEnabled
drag.target: root
onPressed: function (mouse) {
if (mouse.button === Qt.LeftButton && root.dndEnabled) {
appIcon.grabToImage(function(result) {
root.Drag.imageSource = result.url;
})
}
}
onClicked: {
if (!drag.active) {
root.itemClicked()
}
}
}
}

// as topMargin
Expand Down