Skip to content

Commit a60d9fb

Browse files
committed
chore: change item delegate for taskmanager from DropArea to Item
将 taskmanager 组件的 item delegate 调整为 Item Log:
1 parent d84eb17 commit a60d9fb

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

panels/dock/taskmanager/package/TaskManager.qml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ ContainmentItem {
8080
onCountChanged: function() {
8181
relayoutWorkaroundTimer.start()
8282
}
83-
delegate: DropArea {
83+
delegate: Item {
8484
id: delegateRoot
8585
required property bool active
8686
required property bool attention
@@ -89,7 +89,6 @@ ContainmentItem {
8989
required property string iconName
9090
required property string menus
9191
required property list<string> windows
92-
keys: ["text/x-dde-dock-dnd-appid"]
9392
z: attention ? -1 : 0
9493
property bool visibility: itemId !== taskmanager.Applet.desktopIdToAppId(launcherDndDropArea.launcherDndDesktopId)
9594

@@ -113,11 +112,6 @@ ContainmentItem {
113112
implicitWidth: useColumnLayout ? taskmanager.implicitWidth : visualModel.cellWidth
114113
implicitHeight: useColumnLayout ? visualModel.cellWidth : taskmanager.implicitHeight
115114

116-
onEntered: function(drag) {
117-
// TODO: this is actually unused, should change the delegateRoot type from DropArea to Item later.
118-
visualModel.items.move(drag.source.DelegateModel.itemsIndex, delegateRoot.DelegateModel.itemsIndex)
119-
}
120-
121115
property int visualIndex: DelegateModel.itemsIndex
122116

123117
AppItem {

0 commit comments

Comments
 (0)