remove deprecated code

work/spdx
Michail Vourlakos 4 years ago
parent f44e7a1256
commit db48a726bd

@ -110,21 +110,6 @@ MouseArea {
onPositionChanged: {
if (pressed) {
//! is this really needed ????
/*var padding = units.gridUnit * 3;
if (currentApplet && (mouse.x < -padding || mouse.y < -padding ||
mouse.x > width + padding || mouse.y > height + padding)) {
var newCont = plasmoid.containmentAt(mouse.x, mouse.y);
if (newCont && newCont != plasmoid) {
var newPos = newCont.mapFromApplet(plasmoid, mouse.x, mouse.y);
newCont.addApplet(currentApplet.applet, newPos.x, newPos.y);
root.dragOverlay.currentApplet = null;
return;
}
}*/
if(currentApplet){
if (plasmoid.formFactor === PlasmaCore.Types.Vertical) {
currentApplet.y += (mouse.y - lastY);

@ -614,14 +614,13 @@ Item {
//////////////START OF FUNCTIONS
function addApplet(applet, x, y) {
var appletItem = appletItemComponent.createObject(dndSpacer.parent)
var appletItem = appletItemComponent.createObject(dndSpacer.parent);
appletItem.applet = applet;
applet.parent = appletItem.appletWrapper;
applet.anchors.fill = appletItem.appletWrapper;
applet.visible = true;
// don't show applet if it chooses to be hidden but still make it
// accessible in the panelcontroller
appletItem.visible = Qt.binding(function() {

Loading…
Cancel
Save