mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
remove dead code
This commit is contained in:
parent
6c32662123
commit
46f8a90371
1 changed files with 0 additions and 18 deletions
|
|
@ -314,25 +314,7 @@ MouseEventListener {
|
||||||
z: 999
|
z: 999
|
||||||
property int xTarget
|
property int xTarget
|
||||||
property int yTarget
|
property int yTarget
|
||||||
function updateRow() {
|
|
||||||
if (!applicationsView.dragData) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var pos = root.mapToItem(applicationsView.contentItem, x, y);
|
|
||||||
|
|
||||||
//in favorites area?
|
|
||||||
if (applicationsView.headerItem.favoritesStrip.contains(root.mapToItem(applicationsView.headerItem.favoritesStrip, x, y))) {
|
|
||||||
pos.y = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
var newRow = (Math.round(applicationsView.width / applicationsView.cellWidth) * Math.round(pos.y / applicationsView.cellHeight) + Math.round(pos.x / applicationsView.cellWidth));
|
|
||||||
|
|
||||||
if (applicationsView.dragData.ApplicationOriginalRowRole != newRow) {
|
|
||||||
appListModel.moveItem(applicationsView.dragData.ApplicationOriginalRowRole, newRow);
|
|
||||||
applicationsView.dragData.ApplicationOriginalRowRole = newRow;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Behavior on opacity {
|
Behavior on opacity {
|
||||||
ParallelAnimation {
|
ParallelAnimation {
|
||||||
OpacityAnimator {
|
OpacityAnimator {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue