summaryrefslogtreecommitdiff
path: root/src/gui/windows/inventorywindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-18 16:27:04 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-18 16:27:04 +0300
commit03c74387d37cefcc18e59db203d17d78cda40e8e (patch)
tree74e7291b97b67bb75984f5f5819944f058a9ace7 /src/gui/windows/inventorywindow.cpp
parent3d7cb45edeb4f75bad321d54d84fe2d13b487db9 (diff)
downloadmanaplus-03c74387d37cefcc18e59db203d17d78cda40e8e.tar.gz
manaplus-03c74387d37cefcc18e59db203d17d78cda40e8e.tar.bz2
manaplus-03c74387d37cefcc18e59db203d17d78cda40e8e.tar.xz
manaplus-03c74387d37cefcc18e59db203d17d78cda40e8e.zip
Move mousebutton into separate file.
Diffstat (limited to 'src/gui/windows/inventorywindow.cpp')
-rw-r--r--src/gui/windows/inventorywindow.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp
index 14226ee38..ee920f8a1 100644
--- a/src/gui/windows/inventorywindow.cpp
+++ b/src/gui/windows/inventorywindow.cpp
@@ -451,7 +451,7 @@ void InventoryWindow::mouseClicked(MouseEvent &event)
&& inputManager.isActionActive(static_cast<int>(
Input::KEY_STOP_ATTACK)));
- if (!mod && !mod2 && event.getButton() == MouseEvent::RIGHT)
+ if (!mod && !mod2 && event.getButton() == MouseButton::RIGHT)
{
Item *const item = mItems->getSelectedItem();
@@ -471,8 +471,8 @@ void InventoryWindow::mouseClicked(MouseEvent &event)
if (!mInventory)
return;
- if (event.getButton() == MouseEvent::LEFT
- || event.getButton() == MouseEvent::RIGHT)
+ if (event.getButton() == MouseButton::LEFT
+ || event.getButton() == MouseButton::RIGHT)
{
Item *const item = mItems->getSelectedItem();
@@ -483,7 +483,7 @@ void InventoryWindow::mouseClicked(MouseEvent &event)
{
if (mInventory->isMainInventory())
{
- if (event.getButton() == MouseEvent::RIGHT)
+ if (event.getButton() == MouseButton::RIGHT)
{
ItemAmountWindow::showWindow(ItemAmountWindow::StoreAdd,
inventoryWindow, item);
@@ -497,7 +497,7 @@ void InventoryWindow::mouseClicked(MouseEvent &event)
}
else
{
- if (event.getButton() == MouseEvent::RIGHT)
+ if (event.getButton() == MouseButton::RIGHT)
{
ItemAmountWindow::showWindow(ItemAmountWindow::StoreRemove,
inventoryWindow, item);
@@ -514,7 +514,7 @@ void InventoryWindow::mouseClicked(MouseEvent &event)
{
if (PlayerInfo::isItemProtected(item->getId()))
return;
- if (event.getButton() == MouseEvent::RIGHT)
+ if (event.getButton() == MouseButton::RIGHT)
{
ItemAmountWindow::showWindow(ItemAmountWindow::TradeAdd,
tradeWindow, item);