summaryrefslogtreecommitdiff
path: root/src/gui/base/widgets/scrollarea.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/base/widgets/scrollarea.cpp')
-rw-r--r--src/gui/base/widgets/scrollarea.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/gui/base/widgets/scrollarea.cpp b/src/gui/base/widgets/scrollarea.cpp
index f76226bc5..68e1b72d3 100644
--- a/src/gui/base/widgets/scrollarea.cpp
+++ b/src/gui/base/widgets/scrollarea.cpp
@@ -74,8 +74,8 @@
namespace gcn
{
- ScrollArea::ScrollArea() :
- gcn::BasicContainer(),
+ ScrollArea::ScrollArea(const Widget2 *const widget) :
+ gcn::BasicContainer(widget),
MouseListener(),
mVScroll(0),
mHScroll(0),
@@ -101,8 +101,9 @@ namespace gcn
addMouseListener(this);
}
- ScrollArea::ScrollArea(Widget *const content) :
- gcn::BasicContainer(),
+ ScrollArea::ScrollArea(const Widget2 *const widget,
+ Widget *const content) :
+ gcn::BasicContainer(widget),
MouseListener(),
mVScroll(0),
mHScroll(0),
@@ -129,10 +130,11 @@ namespace gcn
addMouseListener(this);
}
- ScrollArea::ScrollArea(Widget *content,
+ ScrollArea::ScrollArea(const Widget2 *const widget,
+ Widget *content,
ScrollPolicy hPolicy,
ScrollPolicy vPolicy) :
- gcn::BasicContainer(),
+ gcn::BasicContainer(widget),
MouseListener(),
mVScroll(0),
mHScroll(0),