diff options
author | aavit <eirik.aavitsland@digia.com> | 2014-10-13 16:48:12 +0200 |
---|---|---|
committer | Eirik Aavitsland <eirik.aavitsland@digia.com> | 2014-10-16 10:16:59 +0300 |
commit | ab757f82ba17f409052457a236ea7b5a2c53fc11 (patch) | |
tree | 4b792094fda319d30c76aeef01bda7024770cd5a /basicsuite | |
parent | 04374090fb5d5b5f57d7c15860635c4df27e26da (diff) |
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 <gatis.paeglis@digia.com>
Diffstat (limited to 'basicsuite')
-rw-r--r-- | basicsuite/graphicaleffects/main.qml | 9 |
1 files changed, 9 insertions, 0 deletions
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 { |