summaryrefslogtreecommitdiff
path: root/src/gui/skilldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-07-03 15:48:02 +0300
committerAndrei Karas <akaras@inbox.ru>2013-07-03 15:48:02 +0300
commit2eb15d389f85e300cb124b990ebbf2663acaa637 (patch)
tree1016d973c9ca54b262b828daf462f07505c7fd4c /src/gui/skilldialog.cpp
parent9e4161f7324331498630fb25e72ff6d08c2db76f (diff)
downloadmv-2eb15d389f85e300cb124b990ebbf2663acaa637.tar.gz
mv-2eb15d389f85e300cb124b990ebbf2663acaa637.tar.bz2
mv-2eb15d389f85e300cb124b990ebbf2663acaa637.tar.xz
mv-2eb15d389f85e300cb124b990ebbf2663acaa637.zip
add support for drag and drop from/to shortcuts window.
Diffstat (limited to 'src/gui/skilldialog.cpp')
-rw-r--r--src/gui/skilldialog.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp
index d6fc3656c..0653a5e0d 100644
--- a/src/gui/skilldialog.cpp
+++ b/src/gui/skilldialog.cpp
@@ -168,6 +168,7 @@ class SkillListBox final : public ListBox
if (!skill)
return;
dragDrop.dragSkill(skill, DRAGDROP_SOURCE_SKILLS);
+ dragDrop.setItem(skill->id + SKILL_MIN_ID);
}
ListBox::mouseDragged(event);
}
@@ -609,6 +610,11 @@ SkillInfo* SkillDialog::getSkill(const int id)
return mSkills[id];
}
+SkillInfo* SkillDialog::getSkillByItem(const int itemId)
+{
+ return mSkills[itemId - SKILL_MIN_ID];
+}
+
void SkillDialog::widgetResized(const gcn::Event &event)
{
Window::widgetResized(event);