summaryrefslogtreecommitdiff
path: root/src/gui/widgets/shortcutcontainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/shortcutcontainer.cpp')
-rw-r--r--src/gui/widgets/shortcutcontainer.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/widgets/shortcutcontainer.cpp b/src/gui/widgets/shortcutcontainer.cpp
index d4321440f..f1e9c8a18 100644
--- a/src/gui/widgets/shortcutcontainer.cpp
+++ b/src/gui/widgets/shortcutcontainer.cpp
@@ -43,6 +43,7 @@ ShortcutContainer::ShortcutContainer(Widget2 *const widget) :
WidgetListener(),
MouseListener(),
mBackgroundImg(nullptr),
+ mSkin(nullptr),
mMaxItems(0),
mBoxWidth(1),
mBoxHeight(1),
@@ -157,3 +158,10 @@ void ShortcutContainer::widgetMoved(const Event& event A_UNUSED)
{
mRedraw = true;
}
+
+void ShortcutContainer::setSkin(const Widget2 *const widget,
+ Skin *const skin)
+{
+ setWidget2(widget);
+ mSkin = skin;
+}