1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
15 Author: Stefan Hundhammer <sh@suse.de>
20 #define y2log_component "qt-ui"
21 #include <ycp/y2log.h>
22 #include "YQLayoutBox.h"
25 YQLayoutBox::YQLayoutBox( YWidget * parent,
26 YUIDimension dimension )
27 : QWidget( (QWidget *) parent->widgetRep() )
28 , YLayoutBox( parent, dimension )
34 void YQLayoutBox::setEnabled( bool enabled )
36 QWidget::setEnabled( enabled );
37 YWidget::setEnabled( enabled );
41 void YQLayoutBox::setSize( int newWidth, int newHeight )
43 // y2debug( "Resizing %s to %d x %d", widgetClass(), newWidth, newHeight );
44 resize( newWidth, newHeight );
45 YLayoutBox::setSize( newWidth, newHeight );
49 void YQLayoutBox::moveChild( YWidget * child, int newX, int newY )
51 QWidget * qw = (QWidget *)( child->widgetRep() );
52 qw->move( newX, newY );
56 #include "YQLayoutBox.moc"