summaryrefslogtreecommitdiff
path: root/src/gui/widgets/itemshortcutcontainer.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/itemshortcutcontainer.cpp
parentdb82bf99bbd6d246f3e8da19fe88705f7015f144 (diff)
downloadplus-0c063cf5b45a843485fe3343e5fb79a40141f88c.tar.gz
plus-0c063cf5b45a843485fe3343e5fb79a40141f88c.tar.bz2
plus-0c063cf5b45a843485fe3343e5fb79a40141f88c.tar.xz
plus-0c063cf5b45a843485fe3343e5fb79a40141f88c.zip
Convert DragDropSource enum into strong typed enum.
Diffstat (limited to 'src/gui/widgets/itemshortcutcontainer.cpp')
-rw-r--r--src/gui/widgets/itemshortcutcontainer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/itemshortcutcontainer.cpp b/src/gui/widgets/itemshortcutcontainer.cpp
index 170a4f504..dc7c214dd 100644
--- a/src/gui/widgets/itemshortcutcontainer.cpp
+++ b/src/gui/widgets/itemshortcutcontainer.cpp
@@ -390,7 +390,7 @@ void ItemShortcutContainer::mouseDragged(MouseEvent &event)
if (item)
{
selShortcut->removeItem(index);
- dragDrop.dragItem(item, DRAGDROP_SOURCE_SHORTCUTS, index);
+ dragDrop.dragItem(item, DragDropSource::Shortcuts, index);
}
else
{
@@ -411,7 +411,7 @@ void ItemShortcutContainer::mouseDragged(MouseEvent &event)
{
selShortcut->removeItem(index);
dragDrop.dragCommand(spell,
- DRAGDROP_SOURCE_SHORTCUTS, index);
+ DragDropSource::Shortcuts, index);
dragDrop.setItem(itemId);
}
else
@@ -432,7 +432,7 @@ void ItemShortcutContainer::mouseDragged(MouseEvent &event)
{
selShortcut->removeItem(index);
dragDrop.dragSkill(skill,
- DRAGDROP_SOURCE_SHORTCUTS, index);
+ DragDropSource::Shortcuts, index);
dragDrop.setItem(itemId);
}
else
@@ -509,7 +509,7 @@ void ItemShortcutContainer::mouseReleased(MouseEvent &event)
}
else
{
- if (dragDrop.getSource() == DRAGDROP_SOURCE_SHORTCUTS)
+ if (dragDrop.getSource() == DragDropSource::Shortcuts)
{
const int oldIndex = dragDrop.getTag();
selShortcut->setItem(oldIndex, dragDrop.getItem(),