summaryrefslogtreecommitdiff
path: root/src/gui/widgets/avatarlistbox.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-17 21:05:17 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-17 21:05:17 +0300
commitd119e4425f418afe1198839a57e7b186d717d587 (patch)
tree32f67704ac02e373161607946ca130cc5397535a /src/gui/widgets/avatarlistbox.cpp
parentc7f654988a90f377bea6cf04492c6577246a0549 (diff)
downloadplus-d119e4425f418afe1198839a57e7b186d717d587.tar.gz
plus-d119e4425f418afe1198839a57e7b186d717d587.tar.bz2
plus-d119e4425f418afe1198839a57e7b186d717d587.tar.xz
plus-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.cpp20
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;