diff --git a/rviz_rendering/include/rviz_rendering/render_window.hpp b/rviz_rendering/include/rviz_rendering/render_window.hpp index cdee58b47..92c248168 100644 --- a/rviz_rendering/include/rviz_rendering/render_window.hpp +++ b/rviz_rendering/include/rviz_rendering/render_window.hpp @@ -139,9 +139,6 @@ public slots: // void // mouseReleaseEvent(QMouseEvent * mouse_event) override; - void - exposeEvent(QExposeEvent * expose_event) override; - bool event(QEvent * event) override; diff --git a/rviz_rendering/src/rviz_rendering/render_window.cpp b/rviz_rendering/src/rviz_rendering/render_window.cpp index c9d7d9794..285bc893c 100644 --- a/rviz_rendering/src/rviz_rendering/render_window.cpp +++ b/rviz_rendering/src/rviz_rendering/render_window.cpp @@ -157,9 +157,7 @@ RenderWindow::event(QEvent * event) { switch (event->type()) { case QEvent::Resize: - if (this->isExposed()) { - impl_->resize(this->width(), this->height()); - } + impl_->resize(this->width(), this->height()); return QWindow::event(event); case QEvent::UpdateRequest: this->renderNow(); @@ -182,18 +180,6 @@ RenderWindow::event(QEvent * event) } } -void -RenderWindow::exposeEvent(QExposeEvent * expose_event) -{ - Q_UNUSED(expose_event); - - if (this->isExposed()) { - impl_->resize(this->width(), this->height()); - this->renderNow(); - } -} - - void RenderWindowOgreAdapter::setOgreCamera(RenderWindow * render_window, Ogre::Camera * ogre_camera) {