summaryrefslogtreecommitdiff
path: root/src/gui/shortcutwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-28 23:00:20 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-28 23:09:33 +0300
commit739fd277e28120cd643ac443a013b482698427ba (patch)
tree3f2a154ce26753f5d2014ea50e440499ab8f9305 /src/gui/shortcutwindow.cpp
parent727808b197394912f212641fb2e39088eab82060 (diff)
downloadManaVerse-739fd277e28120cd643ac443a013b482698427ba.tar.gz
ManaVerse-739fd277e28120cd643ac443a013b482698427ba.tar.bz2
ManaVerse-739fd277e28120cd643ac443a013b482698427ba.tar.xz
ManaVerse-739fd277e28120cd643ac443a013b482698427ba.zip
Hide popups in different hidden windows.
Diffstat (limited to 'src/gui/shortcutwindow.cpp')
-rw-r--r--src/gui/shortcutwindow.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gui/shortcutwindow.cpp b/src/gui/shortcutwindow.cpp
index df21488a5..6d48da197 100644
--- a/src/gui/shortcutwindow.cpp
+++ b/src/gui/shortcutwindow.cpp
@@ -159,3 +159,22 @@ int ShortcutWindow::getTabIndex()
return 0;
return mTabs->getSelectedTabIndex();
}
+
+void ShortcutWindow::widgetHidden(const gcn::Event &event)
+{
+ if (mItems)
+ mItems->widgetHidden(event);
+ if (mTabs)
+ {
+ ScrollArea *scroll = static_cast<ScrollArea*>(
+ mTabs->getCurrentWidget());
+ if (scroll)
+ {
+ ShortcutContainer *content = static_cast<ShortcutContainer*>(
+ scroll->getContent());
+
+ if (content)
+ content->widgetHidden(event);
+ }
+ }
+}