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/windows/inventorywindow.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/gui/windows/inventorywindow.cpp') 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( 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); -- cgit v1.2.3-70-g09d2