summaryrefslogtreecommitdiff
path: root/src/gui/widgets/itemcontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-24 15:31:06 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-24 15:31:06 +0300
commit3f5c128b889b4cb41f9782fe1531c55e7d07432f (patch)
treeb5903e10142f876d29bf4d4643261f1b058fefe9 /src/gui/widgets/itemcontainer.cpp
parentc53839e9125a72e2bbc5e479934b5b9111bef5d6 (diff)
downloadmanaplus-3f5c128b889b4cb41f9782fe1531c55e7d07432f.tar.gz
manaplus-3f5c128b889b4cb41f9782fe1531c55e7d07432f.tar.bz2
manaplus-3f5c128b889b4cb41f9782fe1531c55e7d07432f.tar.xz
manaplus-3f5c128b889b4cb41f9782fe1531c55e7d07432f.zip
Move inventory type into separate file.
Diffstat (limited to 'src/gui/widgets/itemcontainer.cpp')
-rw-r--r--src/gui/widgets/itemcontainer.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp
index 391f9d741..528e751fb 100644
--- a/src/gui/widgets/itemcontainer.cpp
+++ b/src/gui/widgets/itemcontainer.cpp
@@ -411,16 +411,16 @@ void ItemContainer::mousePressed(MouseEvent &event)
DragDropSource src = DRAGDROP_SOURCE_EMPTY;
switch (mInventory->getType())
{
- case Inventory::INVENTORY:
+ case InventoryType::INVENTORY:
src = DRAGDROP_SOURCE_INVENTORY;
break;
- case Inventory::STORAGE:
+ case InventoryType::STORAGE:
src = DRAGDROP_SOURCE_STORAGE;
break;
- case Inventory::TRADE:
+ case InventoryType::TRADE:
src = DRAGDROP_SOURCE_TRADE;
break;
- case Inventory::NPC:
+ case InventoryType::NPC:
src = DRAGDROP_SOURCE_NPC;
break;
default:
@@ -506,16 +506,16 @@ void ItemContainer::mouseReleased(MouseEvent &event)
DragDropSource dst = DRAGDROP_SOURCE_EMPTY;
switch (mInventory->getType())
{
- case Inventory::INVENTORY:
+ case InventoryType::INVENTORY:
dst = DRAGDROP_SOURCE_INVENTORY;
break;
- case Inventory::STORAGE:
+ case InventoryType::STORAGE:
dst = DRAGDROP_SOURCE_STORAGE;
break;
- case Inventory::TRADE:
+ case InventoryType::TRADE:
dst = DRAGDROP_SOURCE_TRADE;
break;
- case Inventory::NPC:
+ case InventoryType::NPC:
dst = DRAGDROP_SOURCE_NPC;
break;
default:
@@ -528,15 +528,15 @@ void ItemContainer::mouseReleased(MouseEvent &event)
if (src == DRAGDROP_SOURCE_INVENTORY
&& dst == DRAGDROP_SOURCE_STORAGE)
{
- srcContainer = Inventory::INVENTORY;
- dstContainer = Inventory::STORAGE;
+ srcContainer = InventoryType::INVENTORY;
+ dstContainer = InventoryType::STORAGE;
inventory = PlayerInfo::getInventory();
}
else if (src == DRAGDROP_SOURCE_STORAGE
&& dst == DRAGDROP_SOURCE_INVENTORY)
{
- srcContainer = Inventory::STORAGE;
- dstContainer = Inventory::INVENTORY;
+ srcContainer = InventoryType::STORAGE;
+ dstContainer = InventoryType::INVENTORY;
inventory = PlayerInfo::getStorageInventory();
}
if (src == DRAGDROP_SOURCE_INVENTORY