Changeset 187


Ignore:
Timestamp:
Sep 17, 2009, 3:09:44 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Fixed child widget duplication (#74).

Location:
trunk/src/gui/kernel
Files:
2 edited

Legend:

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

    r186 r187  
    645645            if (qApp->activePopupWidget() != 0) { // in popup mode
    646646                QWidget *w = QApplication::widgetAt(qmsg.ptl.x, qmsg.ptl.y);
    647                 if (w) {
    648                     POINTL ptl = { SHORT1FROMMP(qmsg.mp1), SHORT2FROMMP(qmsg.mp1) };
    649                     WinMapWindowPoints(qmsg.hwnd, w->winId(), &ptl, 1);
    650                     qmsg.mp1 = MPFROM2SHORT(ptl.x, ptl.y);
     647                if (w)
    651648                    widget = (QETWidget*)w;
    652                 }
    653649            }
    654650            if (widget->translateMouseEvent(qmsg)) // mouse event
  • trunk/src/gui/kernel/qwidget_pm.cpp

    r186 r187  
    19381938                    qt_WinSetWindowPos(q->internalWinId(), 0, xrect.x(),
    19391939                                       // flip y coordinate
    1940                                        h - (xrect.y() + 1),
     1940                                       h - (xrect.y() + ),
    19411941                                       xrect.width(), xrect.height(),
    19421942                                       SWP_MOVE | SWP_SIZE);
     
    19991999        qt_WinSetWindowPos(q->internalWinId(), 0, xrect.x(),
    20002000                           // flip y coordinate
    2001                            h - (xrect.y() + 1),
     2001                           h - (xrect.y() + ),
    20022002                           xrect.width(), xrect.height(), SWP_MOVE | SWP_SIZE);
    20032003    }
Note: See TracChangeset for help on using the changeset viewer.