Commit b3fc4204 authored by Bernhard Beschow's avatar Bernhard Beschow
Browse files

MarbleWidget::resizeEvent(): call base class' method rather than update()

parent 3ac482a7
......@@ -713,12 +713,13 @@ void MarbleWidget::leaveEvent( QEvent* )
emit mouseMoveGeoPosition( tr( NOT_AVAILABLE ) );
}
void MarbleWidget::resizeEvent( QResizeEvent* )
void MarbleWidget::resizeEvent( QResizeEvent *event )
{
setUpdatesEnabled( false );
d->m_map.setSize( width(), height() );
update();
d->m_map.setSize( event->size() );
setUpdatesEnabled( true );
QWidget::resizeEvent( event );
}
void MarbleWidget::connectNotify( const char * signal )
......
......@@ -1015,7 +1015,7 @@ class MARBLE_EXPORT MarbleWidget : public QWidget
/**
* @brief Reimplementation of the resizeEvent() function in QWidget.
*/
virtual void resizeEvent( QResizeEvent* );
virtual void resizeEvent( QResizeEvent *event );
void connectNotify( const char * signal );
void disconnectNotify( const char * signal );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment