Added GPLv3 headers all over the place.
[fail.git] / src / gui / tool / HGroup.cpp
blobb239bfc877d4cf06328649876dccb51b3dd93ba8
1 /*
2 Fail game engine
3 Copyright 2007 Antoine Chavasse <a.chavasse@gmail.com>
5 This file is part of Fail.
7 Fail is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 3
9 as published by the Free Software Foundation.
11 Fail is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #include "gui/tool/HGroup.h"
21 using namespace fail;
22 using namespace fail::gui;
23 using namespace fail::gui::tool;
25 HGroup::HGroup( Container* pParent ) :
26 SimpleContainer( pParent ),
27 m_pLayout( new QHBoxLayout )
29 m_pLayout->setContentsMargins( 0, 0, 0, 0 );
30 m_pQWidget->setLayout( m_pLayout );
31 pParent->addChild( this );
34 void HGroup::addChild( const Pointer< Widget >& pChild )
36 SimpleContainer::addChild( pChild );
37 m_pLayout->addWidget( &pChild->getQWidget() );