From 9b43913596a5fee5c16ffa84a245baa39c0232fc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 18 Aug 2014 18:00:09 +0300 Subject: In DropShortcutContainer accept object with data from constructor. --- src/gui/widgets/dropshortcutcontainer.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/gui/widgets/dropshortcutcontainer.h') diff --git a/src/gui/widgets/dropshortcutcontainer.h b/src/gui/widgets/dropshortcutcontainer.h index 84d85c6c0..23addb8c2 100644 --- a/src/gui/widgets/dropshortcutcontainer.h +++ b/src/gui/widgets/dropshortcutcontainer.h @@ -26,6 +26,7 @@ #include "gui/widgets/shortcutcontainer.h" class ItemPopup; +class ShortcutBase; /** * An item shortcut container. Used to quickly use items. @@ -38,7 +39,8 @@ class DropShortcutContainer final : public ShortcutContainer /** * Constructor. Initializes the graphic. */ - explicit DropShortcutContainer(Widget2 *const widget); + DropShortcutContainer(Widget2 *const widget, + ShortcutBase *const shortcut); A_DELETE_COPY(DropShortcutContainer) @@ -82,6 +84,8 @@ class DropShortcutContainer final : public ShortcutContainer Color mEquipedColor2; Color mUnEquipedColor; Color mUnEquipedColor2; + + ShortcutBase *mShortcut; }; #endif // GUI_WIDGETS_DROPSHORTCUTCONTAINER_H -- cgit v1.2.3-70-g09d2