Skip to content

Commit

Permalink
Suppress warnings when building with older Qt versions. (#562)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
  • Loading branch information
clalancette authored Jun 8, 2020
1 parent 39e1813 commit 0dc0f5b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ class ViewControllerTestFixture : public DisplayTestFixture
rviz_common::ViewportMouseEvent generateMouseWheelEvent(int delta)
{
auto point = QPointF();
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
auto global_point = QPointF();
auto pixel_delta = QPoint();
auto angle_delta = QPoint(delta, 0);
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
auto mouseEvent = new QWheelEvent(
point,
global_point,
Expand Down

0 comments on commit 0dc0f5b

Please sign in to comment.