From ab757f82ba17f409052457a236ea7b5a2c53fc11 Mon Sep 17 00:00:00 2001 From: aavit Date: Mon, 13 Oct 2014 16:48:12 +0200 Subject: Add a visual cursor to the dragging area of graphicaleffects The idea is to make it more intuitive for the user what that area at the bottom left is for. Change-Id: Ia16edf04891dc48077c4fb9a7cf535e84d6193a3 Reviewed-by: Gatis Paeglis --- basicsuite/graphicaleffects/main.qml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/basicsuite/graphicaleffects/main.qml b/basicsuite/graphicaleffects/main.qml index 78a5f42..06a68cb 100644 --- a/basicsuite/graphicaleffects/main.qml +++ b/basicsuite/graphicaleffects/main.qml @@ -178,6 +178,15 @@ Item { ctx.stroke(); } + + Rectangle { + color: "red" + width: parent.width / 20 + height: width + radius: width / 2 + x: canvas.padding + loader.item.inputX * (parent.width - 2*canvas.padding) - width/2 + y: canvas.padding + (1-loader.item.inputY) * (parent.height - 2*canvas.padding) - width/2 + } } Text { -- cgit v1.2.3