Skip to content

Commit

Permalink
Change deprecated Qt::MidButton (#153)
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina authored Dec 10, 2020
1 parent 322f872 commit 6f1dca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Conversions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ignition::common::MouseEvent ignition::gui::convert(const QMouseEvent &_e)
event.SetButton(common::MouseEvent::LEFT);
else if (_e.button() == Qt::RightButton)
event.SetButton(common::MouseEvent::RIGHT);
else if (_e.button() == Qt::MidButton)
else if (_e.button() == Qt::MiddleButton)
event.SetButton(common::MouseEvent::MIDDLE);

// Buttons
Expand All @@ -83,7 +83,7 @@ ignition::common::MouseEvent ignition::gui::convert(const QMouseEvent &_e)
if (_e.buttons() & Qt::RightButton)
event.SetButtons(event.Buttons() | common::MouseEvent::RIGHT);

if (_e.buttons() & Qt::MidButton)
if (_e.buttons() & Qt::MiddleButton)
event.SetButtons(event.Buttons() | common::MouseEvent::MIDDLE);

// Type
Expand Down

0 comments on commit 6f1dca7

Please sign in to comment.