summaryrefslogtreecommitdiff
path: root/src/gui/widgets/horizontcontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-20 02:49:46 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-20 02:49:46 +0300
commite2620fcbbe0ae5ac43565879f4b7243c367c84cf (patch)
tree39acff6d0c70aebf4f6813e1c9350873b04c63ed /src/gui/widgets/horizontcontainer.cpp
parent0d2d350e8eb6f57be31f926897e39c6483eeee75 (diff)
downloadmv-e2620fcbbe0ae5ac43565879f4b7243c367c84cf.tar.gz
mv-e2620fcbbe0ae5ac43565879f4b7243c367c84cf.tar.bz2
mv-e2620fcbbe0ae5ac43565879f4b7243c367c84cf.tar.xz
mv-e2620fcbbe0ae5ac43565879f4b7243c367c84cf.zip
Move gui opacity option to visual settings page.
Add slider class for setup pages.
Diffstat (limited to 'src/gui/widgets/horizontcontainer.cpp')
-rw-r--r--src/gui/widgets/horizontcontainer.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/widgets/horizontcontainer.cpp b/src/gui/widgets/horizontcontainer.cpp
index c128ea550..5bf81c5d8 100644
--- a/src/gui/widgets/horizontcontainer.cpp
+++ b/src/gui/widgets/horizontcontainer.cpp
@@ -34,11 +34,16 @@ HorizontContainer::HorizontContainer(int height, int spacing):
void HorizontContainer::add(gcn::Widget *widget)
{
+ add(widget, mSpacing);
+}
+
+void HorizontContainer::add(gcn::Widget *widget, int spacing)
+{
if (!widget)
return;
Container::add(widget);
- widget->setPosition(mLastX, mSpacing);
+ widget->setPosition(mLastX, spacing);
mCount++;
mLastX += widget->getWidth() + 2 * mSpacing;
}