From 03c74387d37cefcc18e59db203d17d78cda40e8e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 18 May 2014 16:27:04 +0300 Subject: Move mousebutton into separate file. --- src/gui/widgets/avatarlistbox.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/avatarlistbox.cpp') diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp index e098cda34..4bbc85a94 100644 --- a/src/gui/widgets/avatarlistbox.cpp +++ b/src/gui/widgets/avatarlistbox.cpp @@ -344,7 +344,7 @@ void AvatarListBox::mousePressed(MouseEvent &event) event.consume(); const unsigned int eventButton = event.getButton(); - if (eventButton == MouseEvent::LEFT) + if (eventButton == MouseButton::LEFT) { if (ava->getType() == AVATAR_PLAYER) { @@ -358,7 +358,7 @@ void AvatarListBox::mousePressed(MouseEvent &event) player_node->navigateTo(ava->getX(), ava->getY()); } } - else if (eventButton == MouseEvent::RIGHT) + else if (eventButton == MouseButton::RIGHT) { switch (ava->getType()) { @@ -417,7 +417,7 @@ void AvatarListBox::mousePressed(MouseEvent &event) } } } - else if (eventButton == MouseEvent::MIDDLE) + else if (eventButton == MouseButton::MIDDLE) { if (ava->getType() == AVATAR_PLAYER && chatWindow) { -- cgit v1.2.3-60-g2f50