Ignore:
Timestamp:
Jan 12, 2010, 12:00:10 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: DnD: Implemented support for painting in widgets during drag and draw.

File:
1 edited

Legend:

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

    r438 r447  
    6464#include "qkeymapper_p.h"
    6565#include "qcursor_p.h"
     66
    6667
    6768#define WM_KBDLAYERCHANGED   0x0BD4 // defined in OS2TK45/h/pmbidi.h
     
    702703#define SV_WORKAREA_XLEFT   54
    703704
    704 #ifndef QT_NO_DRAGANDDROP
    705 extern MRESULT qt_dispatchDragAndDrop(QWidget *, const QMSG &); // qdnd_pm.cpp
    706 #endif
    707 
    708705/*!
    709706    \internal
     
    921918#ifndef QT_NO_DRAGANDDROP
    922919        } else if (msg >= WM_DRAGFIRST && msg <= WM_DRAGLAST) {
    923             return qt_dispatchDragAndDrop(widget, qmsg);
     920            return dispatchDragAndDrop(widget, qmsg);
    924921#endif
    925922        } else {
     
    21422139    if (rc == RGN_ERROR) { // The update bounding rect is invalid
    21432140        GpiDestroyRegion(displayPS, hrgn);
    2144         d_func()->hd = NULLHANDLE;
    21452141        setAttribute(Qt::WA_PendingUpdate, false);
    21462142        return false;
     
    21662162    if (rcl.xRight <= rcl.xLeft || rcl.yTop <= rcl.yBottom) {
    21672163        WinEndPaint(d_func()->hd);
     2164
    21682165        GpiDestroyRegion(displayPS, hrgn);
    2169         d_func()->hd = NULLHANDLE;
    21702166        setAttribute(Qt::WA_PendingUpdate, false);
    21712167        return true;
     
    21732169
    21742170    // flip y coordinate
    2175     rcl.yBottom = height() - (rcl.yBottom + 1);
    2176     rcl.yTop = height() - (rcl.yTop + 1);
    2177 
    21782171    // note: right top point is exlusive in rcl
    2179     QRect updRect(QPoint(rcl.xLeft, rcl.yTop + 1),
    2180                   QPoint(rcl.xRight - 1, rcl.yBottom));
     2172    QRect updRect(QPoint(rcl.xLeft, ),
     2173                  QPoint(rcl.xRight - 1, ));
    21812174
    21822175    // Mapping region from system to qt (32 bit) coordinate system.
Note: See TracChangeset for help on using the changeset viewer.