Changeset 121 for trunk/src/gui/kernel/qwidget_pm.cpp
- Timestamp:
- Aug 19, 2009, 11:26:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/qwidget_pm.cpp
r120 r121 90 90 // WC_FRAME parent HWND internally maintaned for them 91 91 cname = QLatin1String("QWindow"); 92 style |= CS_MOVENOTIFY;93 92 } else { 94 93 cname = QLatin1String("QWidget"); … … 1393 1392 Q_ASSERT(fId != NULLHANDLE); 1394 1393 1395 // set flag for the WM_WINDOWPOSCHANGED handler in QtFrameProc1396 d->topData()->inSetWindowState = true;1397 1398 1394 // Ensure the initial size is valid, since we store it as normalGeometry below. 1399 1395 if (!testAttribute(Qt::WA_Resized) && !isVisible()) … … 1458 1454 } 1459 1455 } 1460 1461 // set flag for the WM_WINDOWPOSCHANGED handler in QtFrameProc 1462 d->topData()->inSetWindowState = false; 1463 } 1456 } 1457 1464 1458 data->window_state = newstate; 1465 QWindowStateChangeEvent e(oldstate); 1466 QApplication::sendEvent(this, &e); 1459 // Note: QWindowStateChangeEvent is sent from QtWndProc(WM_MINMAXFRAME) 1467 1460 } 1468 1461 … … 1940 1933 extra->topextra->fId = NULLHANDLE; 1941 1934 extra->topextra->swEntry = NULLHANDLE; 1942 extra->topextra->inSetWindowState = false;1943 1935 } 1944 1936 … … 1989 1981 fs.setCoords(cswp.x, cswp.y, swp.cx - cswp.x - cswp.cx, 1990 1982 swp.cy - cswp.y - cswp.cy); 1991 // @todo do we really need to update crect here?? 1992 //data.crect.setRect(swp.x + cswp.x, swp.y + cswp.y, cswp.cx, cswp.cy); 1983 data.crect.setRect(swp.x + cswp.x, swp.y + cswp.y, cswp.cx, cswp.cy); 1993 1984 1994 1985 data.fstrut_dirty = false;
Note:
See TracChangeset
for help on using the changeset viewer.