From dc6771670569d2f296f4c12595966bbcb9aadf65 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 18 Jun 2011 23:35:58 +0300 Subject: Start implimenting new setup pages. Add new container for setup items. Imporved other containers. --- src/gui/widgets/horizontcontainer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/horizontcontainer.cpp') diff --git a/src/gui/widgets/horizontcontainer.cpp b/src/gui/widgets/horizontcontainer.cpp index a04230871..95320055c 100644 --- a/src/gui/widgets/horizontcontainer.cpp +++ b/src/gui/widgets/horizontcontainer.cpp @@ -26,7 +26,7 @@ HorizontContainer::HorizontContainer(int height, int spacing): mSpacing(spacing), mCount(0), - mLastX(0) + mLastX(spacing) { setHeight(height); addWidgetListener(this); @@ -38,9 +38,9 @@ void HorizontContainer::add(gcn::Widget *widget) return; Container::add(widget); - widget->setPosition(mLastX, 0); + widget->setPosition(mLastX, mSpacing); mCount++; - mLastX += widget->getWidth() + mSpacing; + mLastX += widget->getWidth() + 2 * mSpacing; } void HorizontContainer::clear() -- cgit v1.2.3-70-g09d2