Changeset 289
- Timestamp:
- Nov 5, 2009, 8:49:08 PM (15 years ago)
- Location:
- trunk/src/gui/kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/gui/kernel/qapplication_pm.cpp ¶
r288 r289 120 120 QWExtra *xtra() { return d_func()->extraData(); } 121 121 QTLWExtra *topData() { return d_func()->topData(); } 122 QTLWExtra *maybeTopData() { return d_func()->maybeTopData(); } 122 123 // @todo later 123 // QTLWExtra *maybeTopData() { return d_func()->maybeTopData(); }124 124 // void syncBackingStore(const QRegion &rgn) { d_func()->syncBackingStore(rgn); } 125 125 // void syncBackingStore() { d_func()->syncBackingStore(); } … … 1129 1129 minh = x->minh + fs.top() + fs.bottom(); 1130 1130 if (x->maxw < QWIDGETSIZE_MAX) 1131 maxw = x->maxw > = x->minw ? x->maxw : x->minw + fs.left() + fs.right();1131 maxw = x->maxw > x->minw ? x->maxw + fs.left() + fs.right() : minw; 1132 1132 if (x->maxh < QWIDGETSIZE_MAX) 1133 maxh = x->maxh > = x->minh ? x->maxh : x->minh + fs.top() + fs.bottom();1133 maxh = x->maxh > x->minh ? x->maxh + fs.top() + fs.bottom() : minh; 1134 1134 // obey system recommended minimum size (to emulate Qt/Win32) 1135 1135 pti->ptlMinTrackSize.x = qMax<LONG>(minw, pti->ptlMinTrackSize.x); … … 2042 2042 if (!testAttribute(Qt::WA_WState_Created)) // in QWidget::create() 2043 2043 return true; 2044 2045 if (testAttribute(Qt::WA_WState_ConfigPending)) { 2046 // it's possible that we're trying to set the frame size smaller 2047 // than it possible for WC_FRAME in QWidget::setGeometry_sys(). 2048 // here we correct this (crect there is set before WinSetWindowPos() 2049 // that sends WM_SIZE). 2050 QSize newSize(SHORT1FROMMP(qmsg.mp2), SHORT2FROMMP(qmsg.mp2)); 2051 if (qmsg.msg == WM_SIZE && size() != newSize) 2052 data->crect.setSize(newSize); 2044 if (testAttribute(Qt::WA_WState_ConfigPending)) 2053 2045 return true; 2054 }2055 2056 2046 if (testAttribute(Qt::WA_DontShowOnScreen)) 2057 2047 return true; 2058 // @todo check if this is actually called for !isWindow() widget 2059 // if (!isWindow()) 2060 // return true; 2048 2049 // @todo there are other isWindow() checks below (same in Windows code). 2050 // Either they or this return statement are leftovers. The assertion may 2051 // tell the truth. 2052 Q_ASSERT(isWindow()); 2053 if (!isWindow()) 2054 return true; 2061 2055 2062 2056 // When the window is minimized, PM moves it to -32000,-32000 and resizes -
TabularUnified trunk/src/gui/kernel/qwidget_pm.cpp ¶
r187 r289 2404 2404 void QWidgetPrivate::setModal_sys() 2405 2405 { 2406 // @todo implement2407 2406 } 2408 2407
Note:
See TracChangeset
for help on using the changeset viewer.