Ignore:
Timestamp:
Aug 29, 2009, 1:11:53 AM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Fixed: mouse auto capture on button press didn't work because of the inverted button state in the condition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/kernel/qapplication_pm.cpp

    r139 r140  
    12111211bool QETWidget::translateMouseEvent(const QMSG &qmsg)
    12121212{
    1213 #if 0
     1213#if 0
    12141214    static const char *msgNames[] = { // 11 items
    12151215        "WM_MOUSEMOVE",
     
    14161416    int bs = state & Qt::MouseButtonMask;
    14171417    if ((type == QEvent::MouseButtonPress ||
    1418          type == QEvent::MouseButtonDblClick) && bs == 0) {
     1418         type == QEvent::MouseButtonDblClick) && bs == ) {
    14191419        btnState = SinglePressed;
    1420     } else if (type == QEvent::MouseButtonRelease && bs == button) {
     1420    } else if (type == QEvent::MouseButtonRelease && bs == ) {
    14211421        btnState = AllReleased;
    14221422    }
Note: See TracChangeset for help on using the changeset viewer.