Consideration requested for merging of kdelibs-action branch

Pascal Létourneau pascal.letourneau at kdemail.net
Tue Mar 14 17:48:23 GMT 2006


On Tuesday 14 March 2006 04:41, Thiago Macieira wrote:
> Hamish Rodda wrote:
> >> If you middle-click on a tool button, the triggered signal is emitted
> >> after the mouse button is released, at that point
> >> QApplication::mouseButtons() & Qt::MidButton == 0
> >
> >oh :(
> >
> >Another one to ask the trolls nicely for help with, I guess...
>
> That looks like a bug/regression. Please submit to qt-bugs.
QApplication::mouseButtons() implementation and documentation concurred:
Returns the current state of the buttons on the mouse

What we need in this case is another method: 
QApplication::previousMouseButtons()
Returns the previous state of the buttons on the mouse

Pascal Létourneau




More information about the kde-core-devel mailing list