diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-17 21:05:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-17 21:05:17 +0300 |
commit | d119e4425f418afe1198839a57e7b186d717d587 (patch) | |
tree | 32f67704ac02e373161607946ca130cc5397535a /src/gui/widgets/avatarlistbox.cpp | |
parent | c7f654988a90f377bea6cf04492c6577246a0549 (diff) | |
download | ManaVerse-d119e4425f418afe1198839a57e7b186d717d587.tar.gz ManaVerse-d119e4425f418afe1198839a57e7b186d717d587.tar.bz2 ManaVerse-d119e4425f418afe1198839a57e7b186d717d587.tar.xz ManaVerse-d119e4425f418afe1198839a57e7b186d717d587.zip |
Remove getters for mouse position and use direct variables.
Diffstat (limited to 'src/gui/widgets/avatarlistbox.cpp')
-rw-r--r-- | src/gui/widgets/avatarlistbox.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp index 21689311a..909f01618 100644 --- a/src/gui/widgets/avatarlistbox.cpp +++ b/src/gui/widgets/avatarlistbox.cpp @@ -395,14 +395,14 @@ void AvatarListBox::mousePressed(MouseEvent &event) avatar->getName(), ActorType::PLAYER); if (being) { - popupMenu->showPopup(viewport->getMouseX(), - viewport->getMouseY(), + popupMenu->showPopup(viewport->mMouseX, + viewport->mMouseY, being); } else { - popupMenu->showPlayerPopup(viewport->getMouseX(), - viewport->getMouseY(), + popupMenu->showPlayerPopup(viewport->mMouseX, + viewport->mMouseY, avatar->getName()); } } @@ -418,8 +418,8 @@ void AvatarListBox::mousePressed(MouseEvent &event) else name = model->getAvatarAt(selected)->getName(); - popupMenu->showAttackMonsterPopup(viewport->getMouseX(), - viewport->getMouseY(), + popupMenu->showAttackMonsterPopup(viewport->mMouseX, + viewport->mMouseY, name, static_cast<ActorType::Type>(model->getAvatarAt( selected)->getType())); @@ -434,8 +434,8 @@ void AvatarListBox::mousePressed(MouseEvent &event) else name = model->getAvatarAt(selected)->getName(); - popupMenu->showPickupItemPopup(viewport->getMouseX(), - viewport->getMouseY(), + popupMenu->showPickupItemPopup(viewport->mMouseX, + viewport->mMouseY, name); break; } @@ -460,8 +460,8 @@ void AvatarListBox::mousePressed(MouseEvent &event) { MapItem *const mapItem = map->findPortalXY( ava->getX(), ava->getY()); - popupMenu->showPopup(viewport->getMouseX(), - viewport->getMouseY(), + popupMenu->showPopup(viewport->mMouseX, + viewport->mMouseY, mapItem); } break; |