summaryrefslogtreecommitdiff
path: root/src/gui/widgets/itemcontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-16 14:22:57 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-16 15:19:51 +0300
commit8406b00588070266ae8af2bf25776f2fa716af69 (patch)
treef3515975feaf7dad0a7fa6ee33f6c88d1c6579b3 /src/gui/widgets/itemcontainer.cpp
parentf880384018ee23efdc5cc072789e176208956a06 (diff)
downloadplus-8406b00588070266ae8af2bf25776f2fa716af69.tar.gz
plus-8406b00588070266ae8af2bf25776f2fa716af69.tar.bz2
plus-8406b00588070266ae8af2bf25776f2fa716af69.tar.xz
plus-8406b00588070266ae8af2bf25776f2fa716af69.zip
move mouseevent into events directory.
Diffstat (limited to 'src/gui/widgets/itemcontainer.cpp')
-rw-r--r--src/gui/widgets/itemcontainer.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp
index b2fa6a47e..27a00798e 100644
--- a/src/gui/widgets/itemcontainer.cpp
+++ b/src/gui/widgets/itemcontainer.cpp
@@ -394,7 +394,7 @@ void ItemContainer::keyReleased(KeyEvent &event A_UNUSED)
{
}
-void ItemContainer::mousePressed(gcn::MouseEvent &event)
+void ItemContainer::mousePressed(MouseEvent &event)
{
if (!mInventory)
return;
@@ -402,7 +402,7 @@ void ItemContainer::mousePressed(gcn::MouseEvent &event)
const int button = event.getButton();
mClicks = event.getClickCount();
- if (button == gcn::MouseEvent::LEFT || button == gcn::MouseEvent::RIGHT)
+ if (button == MouseEvent::LEFT || button == MouseEvent::RIGHT)
{
const int index = getSlotIndex(event.getX(), event.getY());
if (index == Inventory::NO_SLOT_INDEX)
@@ -468,13 +468,13 @@ void ItemContainer::mousePressed(gcn::MouseEvent &event)
}
}
-void ItemContainer::mouseDragged(gcn::MouseEvent &event A_UNUSED)
+void ItemContainer::mouseDragged(MouseEvent &event A_UNUSED)
{
if (mSelectionStatus != SEL_NONE)
mSelectionStatus = SEL_DRAGGING;
}
-void ItemContainer::mouseReleased(gcn::MouseEvent &event)
+void ItemContainer::mouseReleased(MouseEvent &event)
{
if (mClicks == 2)
return;
@@ -594,7 +594,7 @@ void ItemContainer::mouseReleased(gcn::MouseEvent &event)
}
}
-void ItemContainer::mouseMoved(gcn::MouseEvent &event)
+void ItemContainer::mouseMoved(MouseEvent &event)
{
if (!mInventory)
return;
@@ -613,7 +613,7 @@ void ItemContainer::mouseMoved(gcn::MouseEvent &event)
}
}
-void ItemContainer::mouseExited(gcn::MouseEvent &event A_UNUSED)
+void ItemContainer::mouseExited(MouseEvent &event A_UNUSED)
{
mItemPopup->setVisible(false);
}