Changeset View
Changeset View
Standalone View
Standalone View
src/QuickEditor/EditorRoot.qml
Context not available. | |||||
271 | onPositionChanged: { | 271 | onPositionChanged: { | ||
---|---|---|---|---|---|
272 | selection.x = Math.min(startx, mouse.x); | 272 | selection.x = Math.min(startx, mouse.x); | ||
273 | selection.y = Math.min(starty, mouse.y); | 273 | selection.y = Math.min(starty, mouse.y); | ||
274 | selection.width = Math.abs(startx - mouse.x); | 274 | selection.width = Math.abs(startx - mouse.x) + 1; | ||
275 | selection.height = Math.abs(starty - mouse.y); | 275 | selection.height = Math.abs(starty - mouse.y) + 1; | ||
276 | 276 | | |||
277 | cropDisplayCanvas.requestPaint(); | 277 | cropDisplayCanvas.requestPaint(); | ||
278 | } | 278 | } | ||
Context not available. |