Ignore:
Timestamp:
Jan 12, 2010, 12:00:10 PM (16 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/qwidget.cpp

    r352 r447  
    8686#if defined (Q_WS_WIN)
    8787# include <private/qwininputcontext_p.h>
     88#endif
     89
     90#if defined (Q_WS_PM)
     91# include "qdnd_p.h"
    8892#endif
    8993
     
    1041110415    if (d->hd != NULLHANDLE)
    1041210416        return (HPS) d->hd;
     10417#ifndef QT_NO_DRAGANDDROP
     10418    if (QDragManager::self()->isInDrag())
     10419        return DrgGetPS(winId());
     10420#endif
    1041310421    return WinGetPS(winId());
    1041410422}
     
    1042410432    // If there is a widget's own ps, the release operation is ignored because
    1042510433    // it will be released elsewhere. Otherwise, we assume that the given hps
    10426     // was acquired by WinGetPS in the getPS() call and release it.
    10427     if (d->hd == NULLHANDLE)
     10434    // was acquired by DrgGetPS/WinGetPS in the getPS() call and release it.
     10435    if (d->hd == NULLHANDLE) {
     10436#ifndef QT_NO_DRAGANDDROP
     10437        if (QDragManager::self()->isInDrag())
     10438            DrgReleasePS(hps);
     10439        else
     10440#endif
    1042810441        WinReleasePS(hps);
     10442    }
    1042910443}
    1043010444#else
Note: See TracChangeset for help on using the changeset viewer.