working thickness settings

This commit is contained in:
Marco Martin 2013-05-08 11:20:06 +02:00
parent 37cfe4a023
commit c28b0676ac

View File

@ -217,14 +217,17 @@ Rectangle {
case 3:
configDialog.y = mouse.screenY - mapToItem(root, 0, startMouseY).y
panel.thickness = configDialog.y - panel.y
break;
//LeftEdge
case 5:
configDialog.x = mouse.screenX - mapToItem(root, startMouseX, 0).x
panel.thickness = configDialog.x - panel.x
break;
//RightEdge
case 6:
configDialog.x = mouse.screenX - mapToItem(root, startMouseX, 0).x
panel.thickness = (panel.x + panel.width) - (configDialog.x + configDialog.width)
break;
//BottomEdge
case 4:
default: