Fixed "TQApplication::postEvent: Unexpected null receiver" warning message. This resolves bug 1901 and 1909.

(cherry picked from commit cbeacf0de9)
v3.5.13-sru
Michele Calgaro 11 years ago committed by Slávek Banko
parent 2f51a9410a
commit 7e2db04621

@ -5943,9 +5943,9 @@ QWidget *QWidget::childAt( const QPoint & p, bool includeThis ) const
void QWidget::updateGeometry() void QWidget::updateGeometry()
{ {
if ( !isTopLevel() && isShown() ) QWidget *parent = parentWidget();
QApplication::postEvent( parentWidget(), if (parent && !isTopLevel() && isShown())
new QEvent( QEvent::LayoutHint ) ); QApplication::postEvent(parent, new QEvent(QEvent::LayoutHint));
} }

Loading…
Cancel
Save