Changeset 8893 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- May 16, 2008 12:52:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleView.cpp
r8888 r8893 1127 1127 resize (re->width(), re->height()); 1128 1128 updateSliders(); 1129 /* let our toplevel widget calculate its sizeHint properly */ 1130 QApplication::sendPostedEvents (0, QEvent::LayoutRequest); 1129 /* Let our toplevel widget calculate its sizeHint properly. */ 1130 #ifdef Q_WS_X11 1131 /* We use processEvents rather than sendPostedEvents & set the 1132 * time out value to max cause on X11 otherwise the layout 1133 * isn't calculated correctly. Dosn't find the bug in Qt, but 1134 * this could be triggered through the async nature of the X11 1135 * window event system. */ 1136 QCoreApplication::processEvents (QEventLoop::AllEvents, INT_MAX); 1137 #else /* Q_WS_X11 */ 1138 QCoreApplication::sendPostedEvents (0, QEvent::LayoutRequest); 1139 #endif /* Q_WS_X11 */ 1131 1140 1132 1141 normalizeGeometry (true /* adjustPosition */);
Note:
See TracChangeset
for help on using the changeset viewer.