| 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 */ |
|---|