Changeset 109
- Timestamp:
- Jul 30, 2006, 2:33:26 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel/qapplication_pm.cpp
r106 r109 2593 2593 // flip y coordinate 2594 2594 wpos.ry() = w->height() - (wpos.y() + 1); 2595 QMSG newQmsg = qmsg; 2596 newQmsg.hwnd = w->winId(); 2597 newQmsg.mp1 = MPFROM2SHORT( wpos.x(), wpos.y() ); 2598 ((QETWidget *) w)->translateMouseEvent( newQmsg ); 2595 // Note: it's important to post this message rather than send: 2596 // QPushButton::popupPressed() depends on this so that 2597 // popup->exec() must return before this message is delivered 2598 // as QWidget::keyPressEvent(). 2599 WinPostMsg( w->winId(), qmsg.msg, 2600 MPFROM2SHORT( wpos.x(), wpos.y() ), qmsg.mp2 ); 2599 2601 } 2600 2602 }
Note:
See TracChangeset
for help on using the changeset viewer.