From kde-devel Sun Jun 30 16:43:53 2002 From: Gioele Barabucci Date: Sun, 30 Jun 2002 16:43:53 +0000 To: kde-devel Subject: QMouseEvent button/state X-MARC-Message: https://marc.info/?l=kde-devel&m=102545552610180 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 <<