[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: QMouseEvent button/state
From: Gioele Barabucci <ml () gioelebarabucci ! com>
Date: 2002-06-30 23:19:58
[Download RAW message or body]
On Sunday 30 June 2002 22:45, John Firebaugh wrote:
> How about this:
>
> // prevent LMB down -> RMB down -> LMB up sequence
> if( e->button() == RightButton && e->state() == NoButton )
> emit showMenu( e->globalPos(), deskNum );
> else
> QButton::mousePressEvent( e );
This is wrong, QButton:: get called if button() = RightButton and state() =
LeftButton.
--
Gioele Barabucci (Gb])
) mailto:dev@gioelebarabucci.com
) http://www.gioelebarabucci.com
) ) I've been and now I've gone
) ) /Magic Pie^Oasis
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic