Changeset 1034 for trunk/src/gui/kernel/qapplication_pm.cpp
- Timestamp:
- Aug 29, 2011, 1:43:52 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/qapplication_pm.cpp
r1009 r1034 123 123 extern QCursor *qt_grab_cursor(); 124 124 125 #ifdef QT_PM_NATIVEWIDGETMASK 125 126 extern void qt_WinQueryClipRegionOrRect(HWND hwnd, HRGN hrgn); // qwidget_pm.cpp 127 #endif 126 128 127 129 extern bool qt_sendSpontaneousEvent(QObject*, QEvent*); // qapplication.cpp … … 1191 1193 } 1192 1194 if (!dispatch) { 1195 #ifdef QT_PM_NATIVEWIDGETMASK 1193 1196 HPS hps = qt_display_ps(); 1194 1197 HRGN hrgn = GpiCreateRegion(hps, 0, NULL); … … 1199 1202 dispatch = !GpiPtInRegion(hps, hrgn, &pt); 1200 1203 GpiDestroyRegion(hps, hrgn); 1204 #else 1205 QPoint lcpos = widget->mapFromGlobal(cpos); 1206 QRect rect(0, 0, widget->width(), widget->height()); 1207 dispatch = !rect.contains(lcpos); 1208 #endif 1201 1209 } 1202 1210 } … … 2326 2334 HPS displayPS = qt_display_ps(); 2327 2335 2336 #ifdef QT_PM_NATIVEWIDGETMASK 2328 2337 // Since we don't use WS_CLIPSIBLINGS and WS_CLIPCHILDREN bits (see 2329 2338 // qwidget_pm.cpp), we have to validate areas that intersect with our 2330 2339 // children and siblings, taking their clip regions into account. 2331 2340 d_func()->validateObstacles(); 2341 #endif 2332 2342 2333 2343 Q_ASSERT(testAttribute(Qt::WA_WState_Created));
Note:
See TracChangeset
for help on using the changeset viewer.