Changeset 447 for trunk/src/gui/kernel/qapplication_pm.cpp
- Timestamp:
- Jan 12, 2010, 12:00:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/qapplication_pm.cpp
r438 r447 64 64 #include "qkeymapper_p.h" 65 65 #include "qcursor_p.h" 66 66 67 67 68 #define WM_KBDLAYERCHANGED 0x0BD4 // defined in OS2TK45/h/pmbidi.h … … 702 703 #define SV_WORKAREA_XLEFT 54 703 704 704 #ifndef QT_NO_DRAGANDDROP705 extern MRESULT qt_dispatchDragAndDrop(QWidget *, const QMSG &); // qdnd_pm.cpp706 #endif707 708 705 /*! 709 706 \internal … … 921 918 #ifndef QT_NO_DRAGANDDROP 922 919 } else if (msg >= WM_DRAGFIRST && msg <= WM_DRAGLAST) { 923 return qt_dispatchDragAndDrop(widget, qmsg);920 return dispatchDragAndDrop(widget, qmsg); 924 921 #endif 925 922 } else { … … 2142 2139 if (rc == RGN_ERROR) { // The update bounding rect is invalid 2143 2140 GpiDestroyRegion(displayPS, hrgn); 2144 d_func()->hd = NULLHANDLE;2145 2141 setAttribute(Qt::WA_PendingUpdate, false); 2146 2142 return false; … … 2166 2162 if (rcl.xRight <= rcl.xLeft || rcl.yTop <= rcl.yBottom) { 2167 2163 WinEndPaint(d_func()->hd); 2164 2168 2165 GpiDestroyRegion(displayPS, hrgn); 2169 d_func()->hd = NULLHANDLE;2170 2166 setAttribute(Qt::WA_PendingUpdate, false); 2171 2167 return true; … … 2173 2169 2174 2170 // flip y coordinate 2175 rcl.yBottom = height() - (rcl.yBottom + 1);2176 rcl.yTop = height() - (rcl.yTop + 1);2177 2178 2171 // 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, )); 2181 2174 2182 2175 // Mapping region from system to qt (32 bit) coordinate system.
Note:
See TracChangeset
for help on using the changeset viewer.