]> icculus.org git repositories - duncan/yast2-qt4.git/blob - src/YQSpacing.cc
- Don't create layouts with parent. Qt 4.x automatically reparents
[duncan/yast2-qt4.git] / src / YQSpacing.cc
1 /*---------------------------------------------------------------------\
2 |                                                                      |
3 |                      __   __    ____ _____ ____                      |
4 |                      \ \ / /_ _/ ___|_   _|___ \                     |
5 |                       \ V / _` \___ \ | |   __) |                    |
6 |                        | | (_| |___) || |  / __/                     |
7 |                        |_|\__,_|____/ |_| |_____|                    |
8 |                                                                      |
9 |                               core system                            |
10 |                                                        (C) SuSE GmbH |
11 \----------------------------------------------------------------------/
12
13   File:       YQSpacing.cc
14
15   Author:     Stefan Hundhammer <sh@suse.de>
16
17 /-*/
18
19
20 #include "YQSpacing.h"
21
22
23 YQSpacing::YQSpacing( YWidget *         parent,
24                       YUIDimension      dim,
25                       bool              stretchable,
26                       YLayoutSize_t     layoutUnits )
27     : QWidget( (QWidget *) parent->widgetRep() )
28     , YSpacing( parent, dim, stretchable, layoutUnits )
29 {
30     setWidgetRep( this );
31 }
32
33
34 YQSpacing::~YQSpacing()
35 {
36     // NOP
37 }
38
39
40 void YQSpacing::setSize( int newWidth, int newHeight )
41 {
42     resize( newWidth, newHeight );
43 }
44
45
46
47 #include "YQSpacing.moc"