diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-16 21:16:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-16 21:16:07 +0300 |
commit | 0c063cf5b45a843485fe3343e5fb79a40141f88c (patch) | |
tree | e2419701a312e0ba97404049cd5b82b7420c3fce /src/gui/widgets/itemshortcutcontainer.cpp | |
parent | db82bf99bbd6d246f3e8da19fe88705f7015f144 (diff) | |
download | manaplus-0c063cf5b45a843485fe3343e5fb79a40141f88c.tar.gz manaplus-0c063cf5b45a843485fe3343e5fb79a40141f88c.tar.bz2 manaplus-0c063cf5b45a843485fe3343e5fb79a40141f88c.tar.xz manaplus-0c063cf5b45a843485fe3343e5fb79a40141f88c.zip |
Convert DragDropSource enum into strong typed enum.
Diffstat (limited to 'src/gui/widgets/itemshortcutcontainer.cpp')
-rw-r--r-- | src/gui/widgets/itemshortcutcontainer.cpp | 8 |
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(), |