[PATCH] ActionButton.qml: centre-align the clickable part of the button

Marco Martin notmart at gmail.com
Sat Feb 6 21:03:08 UTC 2016


On Sat, Feb 6, 2016 at 12:09 AM, Rick Walsh <rickmwalsh at gmail.com> wrote:
> ActionButton.qml: centre-align the clickable part of the button
>
> buttonGraphics.x refers to the centre of the action button. For the click to
> be within the central area of the button, mouse.x needs to be between:
>         buttonGraphics.x - buttonGraphics.width / 2, and
>         buttonGraphics.x + buttonGraphics.width / 2
>
> Signed-off-by: Rick Walsh <rickmwalsh at gmail.com>

Thanks, I'll push it.

--
Marco Martin


More information about the Plasma-devel mailing list