[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: QMouseEvent button/state
From: Gioele Barabucci <ml () gioelebarabucci ! com>
Date: 2002-06-30 16:43:53
[Download RAW message or body]
in minipagerapplet.cpp I found this
void KMiniPagerButton::mousePressEvent( QMouseEvent * e)
{
if ( e->button() != RightButton )
QButton::mousePressEvent( e );
else if (e->state() != LeftButton )
emit showMenu( e->globalPos(), deskNum );
}
and I changed it in
void KMiniPagerButton::mousePressEvent( QMouseEvent * e)
{
if ( e->button() == RightButton )
emit showMenu( e->globalPos(), deskNum );
else
QButton::mousePressEvent( e );
}
and everything works as espected, am I missing something?
* If a button is not Right, then it is Center or Left.
* if it is Right then it will never be Left at the same time (it could be
_also_ Left, but "!= LeftButton" is not "! & LeftButton")
what was the author looking for?
--
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