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

pull/2/head
Michele Calgaro 10 years ago committed by Slávek Banko
parent d738b733bd
commit cbeacf0de9

@ -5984,9 +5984,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