summaryrefslogtreecommitdiff
path: root/src/gui/itempopup.cpp
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2009-05-05 18:38:44 -0400
committerChuck Miller <shadowmil@gmail.com>2009-05-05 18:38:44 -0400
commit2ab5dd8b3183f228a4f2038d378ad7100ed241a2 (patch)
tree0a67225590b88f856ee92868676d0f1ba01e2dbe /src/gui/itempopup.cpp
parentbff134a0803f68a7bf69cf2f1121824137d4b2fb (diff)
parent45296672d98ca04cd2e659d5a733bff906342d80 (diff)
downloadmana-client-2ab5dd8b3183f228a4f2038d378ad7100ed241a2.tar.gz
mana-client-2ab5dd8b3183f228a4f2038d378ad7100ed241a2.tar.bz2
mana-client-2ab5dd8b3183f228a4f2038d378ad7100ed241a2.tar.xz
mana-client-2ab5dd8b3183f228a4f2038d378ad7100ed241a2.zip
Merge branch 'master' of git://gitorious.org/tmw/mainline
Diffstat (limited to 'src/gui/itempopup.cpp')
-rw-r--r--src/gui/itempopup.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/itempopup.cpp b/src/gui/itempopup.cpp
index 2a45a06a..e1822e03 100644
--- a/src/gui/itempopup.cpp
+++ b/src/gui/itempopup.cpp
@@ -66,6 +66,8 @@ ItemPopup::ItemPopup():
add(mItemEffect);
add(mItemWeight);
+ addMouseListener(this);
+
loadPopupConfiguration();
}
@@ -178,3 +180,9 @@ void ItemPopup::view(int x, int y)
setVisible(true);
requestMoveToTop();
}
+
+void ItemPopup::mouseMoved(gcn::MouseEvent &event)
+{
+ // When the mouse moved on top of the popup, hide it
+ setVisible(false);
+}