summaryrefslogtreecommitdiff
path: root/src/gui/widgets/spellshortcutcontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-16 21:16:07 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-16 21:16:07 +0300
commit0c063cf5b45a843485fe3343e5fb79a40141f88c (patch)
treee2419701a312e0ba97404049cd5b82b7420c3fce /src/gui/widgets/spellshortcutcontainer.cpp
parentdb82bf99bbd6d246f3e8da19fe88705f7015f144 (diff)
downloadmanaverse-0c063cf5b45a843485fe3343e5fb79a40141f88c.tar.gz
manaverse-0c063cf5b45a843485fe3343e5fb79a40141f88c.tar.bz2
manaverse-0c063cf5b45a843485fe3343e5fb79a40141f88c.tar.xz
manaverse-0c063cf5b45a843485fe3343e5fb79a40141f88c.zip
Convert DragDropSource enum into strong typed enum.
Diffstat (limited to 'src/gui/widgets/spellshortcutcontainer.cpp')
-rw-r--r--src/gui/widgets/spellshortcutcontainer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/spellshortcutcontainer.cpp b/src/gui/widgets/spellshortcutcontainer.cpp
index 4c4b444d8..5a3a568f8 100644
--- a/src/gui/widgets/spellshortcutcontainer.cpp
+++ b/src/gui/widgets/spellshortcutcontainer.cpp
@@ -200,7 +200,7 @@ void SpellShortcutContainer::mouseDragged(MouseEvent &event)
TextCommand *const spell = spellManager->getSpell(itemId);
if (spell)
{
- dragDrop.dragCommand(spell, DRAGDROP_SOURCE_SPELLS, index);
+ dragDrop.dragCommand(spell, DragDropSource::Spells, index);
dragDrop.setItem(spell->getId() + SPELL_MIN_ID);
}
else
@@ -269,7 +269,7 @@ void SpellShortcutContainer::mouseReleased(MouseEvent &event)
if (!dragDrop.isEmpty())
{
- if (dragDrop.getSource() == DRAGDROP_SOURCE_SPELLS)
+ if (dragDrop.getSource() == DragDropSource::Spells)
{
const int oldIndex = dragDrop.getTag();
const int idx = mNumber * SPELL_SHORTCUT_ITEMS;