From 0c063cf5b45a843485fe3343e5fb79a40141f88c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 16 Nov 2015 21:16:07 +0300 Subject: Convert DragDropSource enum into strong typed enum. --- src/gui/widgets/itemshortcutcontainer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui/widgets/itemshortcutcontainer.cpp') 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(), -- cgit v1.2.3-70-g09d2