From kde-devel Sun Jun 30 23:33:49 2002 From: John Firebaugh Date: Sun, 30 Jun 2002 23:33:49 +0000 To: kde-devel Subject: Re: QMouseEvent button/state X-MARC-Message: https://marc.info/?l=kde-devel&m=102548017823477 On Sunday 30 June 2002 4:19, Gioele Barabucci wrote: > 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. What's wrong with that? -John >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<