Changeset 184 for trunk/src/gui/kernel/qwidget_pm.cpp
- Timestamp:
- Sep 16, 2009, 7:37:03 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/qwidget_pm.cpp
r183 r184 1203 1203 WinQueryTaskSizePos(0, 0, &swp); 1204 1204 1205 // update position & initial size of POPUP window1205 //update position & initial size of POPUP window 1206 1206 const bool wasMoved = q->testAttribute(Qt::WA_Moved); 1207 1207 const bool wasResized = q->testAttribute(Qt::WA_Resized); 1208 1208 const bool isVisibleOnScreen = !q->testAttribute(Qt::WA_DontShowOnScreen); 1209 1209 if (popup && initializeWindow && isVisibleOnScreen) { 1210 if (! q->testAttribute(Qt::WA_Resized)) {1210 if (!) { 1211 1211 swp.cx = sw / 2; 1212 1212 swp.cy = 4 * sh / 10; 1213 1214 1215 1213 1216 } 1214 1217 if (!wasMoved) { 1215 1218 swp.x = sw / 2 - swp.cx / 2; 1216 1219 swp.y = sh / 2 - swp.cy / 2; 1220 1221 1222 1223 1224 1217 1225 } 1218 1226 }
Note:
See TracChangeset
for help on using the changeset viewer.