Changeset 447 for trunk/src/gui/kernel/qwidget.cpp
- Timestamp:
- Jan 12, 2010, 12:00:10 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/qwidget.cpp
r352 r447 86 86 #if defined (Q_WS_WIN) 87 87 # include <private/qwininputcontext_p.h> 88 #endif 89 90 #if defined (Q_WS_PM) 91 # include "qdnd_p.h" 88 92 #endif 89 93 … … 10411 10415 if (d->hd != NULLHANDLE) 10412 10416 return (HPS) d->hd; 10417 #ifndef QT_NO_DRAGANDDROP 10418 if (QDragManager::self()->isInDrag()) 10419 return DrgGetPS(winId()); 10420 #endif 10413 10421 return WinGetPS(winId()); 10414 10422 } … … 10424 10432 // If there is a widget's own ps, the release operation is ignored because 10425 10433 // 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 10428 10441 WinReleasePS(hps); 10442 } 10429 10443 } 10430 10444 #else
Note:
See TracChangeset
for help on using the changeset viewer.