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