Skip to content

Commit

Permalink
rename right click dropdown event
Browse files Browse the repository at this point in the history
Signed-off-by: John Shepherd <[email protected]>
  • Loading branch information
John Shepherd committed Dec 10, 2020
1 parent 527b503 commit 1b8204e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions include/ignition/gui/GuiEvents.hh
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,15 @@ namespace ignition
private: math::Vector3d point;
};

/// \brief Event which is called to enable or disable the right click
/// dropdown menu. This is primarily used by plugins which also use
/// the right click to cancel any actions currently in progress.
class RightClickDropdownMenu : public QEvent
/// \brief Event which is called to enable or disable the dropdown menu.
/// This is primarily used by plugins which also use the right click
/// mouse event to cancel any actions currently in progress.
class DropdownMenuEnabled : public QEvent
{
/// \brief Constructor
/// \param[in] _menuEnabled The boolean indicating whether the dropdown
/// menu should be enabled or disabled.
public: explicit RightClickDropdownMenu(bool _menuEnabled)
public: explicit DropdownMenuEnabled(bool _menuEnabled)
: QEvent(kType), menuEnabled(_menuEnabled)
{
}
Expand Down
6 changes: 3 additions & 3 deletions src/GuiEvents_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ TEST(GuiEventsTest, RightClickToScene)
}

/////////////////////////////////////////////////
TEST(GuiEventsTest, RightClickDropdownMenu)
TEST(GuiEventsTest, DropdownMenuEnabled)
{
events::RightClickDropdownMenu event(true);
events::DropdownMenuEnabled event(true);

EXPECT_LT(QEvent::User, event.type());
EXPECT_EQ(true, event.MenuEnabled());

events::RightClickDropdownMenu event2(false);
events::DropdownMenuEnabled event2(false);

EXPECT_LT(QEvent::User, event2.type());
EXPECT_EQ(false, event2.MenuEnabled());
Expand Down

0 comments on commit 1b8204e

Please sign in to comment.