summaryrefslogtreecommitdiff
path: root/src/gui/widgets/dropshortcutcontainer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-18 18:00:09 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-18 18:00:09 +0300
commit9b43913596a5fee5c16ffa84a245baa39c0232fc (patch)
tree0dc8767e12e06e1cf63bd5b6d860fb9c65c027a7 /src/gui/widgets/dropshortcutcontainer.h
parentc9958af6ca4680876b7a40809d51209e00f835fa (diff)
downloadmv-9b43913596a5fee5c16ffa84a245baa39c0232fc.tar.gz
mv-9b43913596a5fee5c16ffa84a245baa39c0232fc.tar.bz2
mv-9b43913596a5fee5c16ffa84a245baa39c0232fc.tar.xz
mv-9b43913596a5fee5c16ffa84a245baa39c0232fc.zip
In DropShortcutContainer accept object with data from constructor.
Diffstat (limited to 'src/gui/widgets/dropshortcutcontainer.h')
-rw-r--r--src/gui/widgets/dropshortcutcontainer.h6
1 files changed, 5 insertions, 1 deletions
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