[Panel-devel] Plasma::PushButton behaviour
Jason Stubbs
jasonbstubbs at gmail.com
Wed Nov 14 16:38:31 CET 2007
Hi all,
I had a go at fixing my issue with Plasma buttons not releasing incorrectly.
The change linked below did partially fix it, but the desktop toolbox buttons
would stay pressed if the mouse button was released after the toolbox had
disappeared.
http://websvn.kde.org/trunk/KDE/kdebase/workspace/libs/plasma/widgets/pushbutton.cpp?r1=721138&r2=735135
I ended up reversing the above change so I've attached patches with and
without the reversal for clarity's sake.
What the patch does:
* Sets the button to the Released state as soon as the mouse leaves the
button's area, which makes it behave the same as regular buttons.
* Relocates an update() so that painting is only done when necessary.
What the patch does not do:
* Handle the case where a button becomes non-visible while being pressed and
hovered over. Neither mouseMoveEvent nor mouseReleaseEvent will be called in
this case.
Regards,
Jason Stubbs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pushbutton-735134.patch
Type: text/x-diff
Size: 1427 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071115/c0268a8e/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pushbutton-736643.patch
Type: text/x-diff
Size: 1774 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071115/c0268a8e/attachment-0001.bin
More information about the Panel-devel
mailing list