Changeset 846 for trunk/src/gui/kernel/qdnd_win.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/kernel/qdnd_win.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 516 516 // IDropSource Methods 517 517 //--------------------------------------------------------------------- 518 STDMETHODIMP518 QT_ENSURE_STACK_ALIGNED_FOR_SSE STDMETHODIMP 519 519 QOleDropSource::QueryContinueDrag(BOOL fEscapePressed, DWORD grfKeyState) 520 520 { … … 525 525 if (fEscapePressed) { 526 526 return ResultFromScode(DRAGDROP_S_CANCEL); 527 } else if (!(grfKeyState & (MK_LBUTTON|MK_MBUTTON|MK_RBUTTON))) { 527 } else if ((GetAsyncKeyState(VK_LBUTTON) == 0) 528 && (GetAsyncKeyState(VK_MBUTTON) == 0) 529 && (GetAsyncKeyState(VK_RBUTTON) == 0)) { 530 // grfKeyState is broken on CE & some Windows XP versions, 531 // therefore we need to check the state manually 528 532 return ResultFromScode(DRAGDROP_S_DROP); 529 533 } else { 530 #if defined(Q_OS_WINCE) 531 // grfKeyState is broken on CE, therefore need to check 532 // the state manually 533 if ((GetAsyncKeyState(VK_LBUTTON) == 0) && 534 (GetAsyncKeyState(VK_MBUTTON) == 0) && 535 (GetAsyncKeyState(VK_RBUTTON) == 0)) { 536 return ResultFromScode(DRAGDROP_S_DROP); 537 } 538 #else 534 #if !defined(Q_OS_WINCE) 539 535 if (currentButtons == Qt::NoButton) { 540 536 currentButtons = keystate_to_mousebutton(grfKeyState); … … 550 546 } 551 547 552 STDMETHODIMP548 QT_ENSURE_STACK_ALIGNED_FOR_SSE STDMETHODIMP 553 549 QOleDropSource::GiveFeedback(DWORD dwEffect) 554 550 { … … 631 627 //--------------------------------------------------------------------- 632 628 633 STDMETHODIMP629 QT_ENSURE_STACK_ALIGNED_FOR_SSE STDMETHODIMP 634 630 QOleDropTarget::DragEnter(LPDATAOBJECT pDataObj, DWORD grfKeyState, POINTL pt, LPDWORD pdwEffect) 635 631 { … … 693 689 } 694 690 695 STDMETHODIMP691 QT_ENSURE_STACK_ALIGNED_FOR_SSE STDMETHODIMP 696 692 QOleDropTarget::DragOver(DWORD grfKeyState, POINTL pt, LPDWORD pdwEffect) 697 693 { … … 763 759 } 764 760 765 STDMETHODIMP761 QT_ENSURE_STACK_ALIGNED_FOR_SSE STDMETHODIMP 766 762 QOleDropTarget::DragLeave() 767 763 { … … 790 786 #define KEY_STATE_BUTTON_MASK (MK_LBUTTON | MK_MBUTTON | MK_RBUTTON) 791 787 792 STDMETHODIMP788 QT_ENSURE_STACK_ALIGNED_FOR_SSE STDMETHODIMP 793 789 QOleDropTarget::Drop(LPDATAOBJECT /*pDataObj*/, DWORD grfKeyState, POINTL pt, LPDWORD pdwEffect) 794 790 {
Note:
See TracChangeset
for help on using the changeset viewer.