]> icculus.org git repositories - duncan/yast2-qt4.git/blob - src/YQReplacePoint.cc
compile
[duncan/yast2-qt4.git] / src / YQReplacePoint.cc
1 /*---------------------------------------------------------------------\
2 |                                                                      |
3 |                      __   __    ____ _____ ____                      |
4 |                      \ \ / /_ _/ ___|_   _|___ \                     |
5 |                       \ V / _` \___ \ | |   __) |                    |
6 |                        | | (_| |___) || |  / __/                     |
7 |                        |_|\__,_|____/ |_| |_____|                    |
8 |                                                                      |
9 |                               core system                            |
10 |                                                        (C) SuSE GmbH |
11 \----------------------------------------------------------------------/
12
13   File:       YQReplacePoint.cc
14
15   Author:     Stefan Hundhammer <sh@suse.de>
16
17 /-*/
18
19
20 #include <qwidget.h>
21 #define y2log_component "qt-ui"
22 #include <ycp/y2log.h>
23
24 #include "YQReplacePoint.h"
25
26
27 YQReplacePoint::YQReplacePoint( YWidget * parent )
28     : QWidget( (QWidget *) parent->widgetRep() )
29     , YReplacePoint( parent )
30 {
31     setWidgetRep( this );
32 }
33
34
35 void YQReplacePoint::showChild()
36 {
37     YWidget * child = firstChild();
38     
39     if ( child )
40     {
41         QWidget * qChild = (QWidget *) child->widgetRep();
42         qChild->show();
43     }
44 }
45
46
47 void YQReplacePoint::setEnabled( bool enabled )
48 {
49     QWidget::setEnabled( enabled );
50     YWidget::setEnabled( enabled );
51 }
52
53
54 void YQReplacePoint::setSize( int newWidth, int newHeight )
55 {
56     resize( newWidth, newHeight );
57     YReplacePoint::setSize( newWidth, newHeight );
58 }
59
60 #include "YQReplacePoint.moc"